Discover Packages
github.com/livebud/bud
package
log
package
Version:
v0.1.7
Opens a new window with list of versions in this module.
Published: Jun 4, 2022
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Flusher interface {
Flush()
}
Flusher is an optional interface
type Handler interface {
Log(log Entry )
}
type Interface interface {
Debug(message string , args ...interface{})
Info(message string , args ...interface{})
Notice(message string , args ...interface{})
Warn(message string , args ...interface{})
Error(message string , args ...interface{})
}
Level of the logger
const (
DebugLevel Level = iota + 1
InfoLevel
NoticeLevel
WarnLevel
ErrorLevel
)
Log level
type Option func(logger *logger)
WithPath determines whether or not to pass the file path to the handler
This is typically turned off to improve performance, but is really handy
for debugging.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.