Discover Packages
github.com/mirzakhany/dbctl
internal
logger
package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Feb 13, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Debug calls the Println method of the logger provider with DEBUG prefix.
Error calls the Println method of the logger provider with ERROR prefix.
Info calls the Println method of the logger provider with INFO prefix.
Println calls the Println method of the logger provider.
SetLevel sets the logger level.
SetProvider sets the logger provider.
Warn calls the Println method of the logger provider with WARN prefix.
LogLevel is the log level type.
const (
LevelDebug LogLevel = iota
LevelInfo
LevelWarn
LevelError
)
Logger is the logger object
New creates a new logger with the given provider.
type Provider interface {
Println(v ...any )
}
Provider is the interface that wraps the Println method.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.