Documentation ¶
Index ¶
- Variables
- func SetFlags(flag int, level LogLevel)
- func SetFlagsForAll(flag int)
- func SetLevel(level LogLevel)
- func SetPrefix(prefix string, level LogLevel)
- func SetPrefixForAll(prefix string)
- func SetToDefault()
- func SetWriter(writer io.Writer, level LogLevel)
- func SetWriterForAll(writer io.Writer)
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Debug func(format string, v ...interface{}) Info func(format string, v ...interface{}) Warning func(format string, v ...interface{}) Error func(format string, v ...interface{}) Panic func(format string, v ...interface{}) // Panic will stop and run defer func() like recovery before exit app Fatal func(format string, v ...interface{}) // Fatal will stop and exit app immedicately, no automatic recovery Recovery func(format string, v ...interface{}) // logging traceback for recovery )
Functions ¶
func SetFlagsForAll ¶
func SetFlagsForAll(flag int)
SetFlagsForAll sets the flag for all level of loggers.
func SetPrefixForAll ¶
func SetPrefixForAll(prefix string)
SetPrefix sets the prefix for all levels.
func SetWriterForAll ¶
SetWriterForAll sets the logger for all level of loggers.
Types ¶
Click to show internal directories.
Click to hide internal directories.