Documentation ¶
Overview ¶
Package alog extends the default log package with levels and other features Program command line arguments can be used to override defaults Logging level is taken from the flag "-level=2" Format is taken from the flag "-format=3" File is taken from the flag "-logfile=stdout"
Index ¶
- Constants
- func Debug(s string, args ...interface{})
- func Error(s string, args ...interface{})
- func Fatal(s string, args ...interface{})
- func Info(s string, args ...interface{})
- func Level() int
- func Setup(defaultWriter io.Writer, defaultLevel int, defaultFormat int)
- func Warn(s string, args ...interface{})
Constants ¶
View Source
const ( //NoneLevel is used to suppress all messages NoneLevel = 0 //ErrorLevel is used to show only errors ErrorLevel = 1 //WarningLevel is used to show only warnings and errors WarningLevel = 2 //InfoLevel is used to show Info,Warning and errors InfoLevel = 3 //DebugLevel is used to show all messages DebugLevel = 4 //AllLevels is just a spare value in case of more levels. AllLevels = 99 )
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
func Fatal(s string, args ...interface{})
Fatal is used to generate exit program with fatal error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.