package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Apr 25, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Level type encode the log level.
const (
DebugLevel Level = iota
InfoLevel
ErrorLevel
Quiet
)
The following constants represent all possible values for the log level.
type Logger interface {
Error(msg string, a ...interface{})
Info(msg string, a ...interface{})
Debug(msg string, a ...interface{})
}
Logger is a very basic log interface.
New creates a new Logger with Options.
Option is a log configuration function.
WithColor indicates to use colors when logging.
WithLevel set the log level.
WithWriter set the log io.Writer.
WithColor indicates to not use colors when logging.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.