Documentation ¶
Overview ¶
Package logging provides a simple logger interface and implementations
Index ¶
Constants ¶
View Source
const ( // LEVEL_DEBUG = 0 LEVEL_DEBUG = iota // LEVEL_INFO = 1 LEVEL_INFO // LEVEL_WARNING = 2 LEVEL_WARNING // LEVEL_ERROR = 3 LEVEL_ERROR // LEVEL_CRITICAL = 4 LEVEL_CRITICAL )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BasicLogger ¶
func (BasicLogger) Critical ¶
func (l BasicLogger) Critical(v ...interface{})
Critical logs a message using CRITICAL as log level.
func (BasicLogger) Debug ¶
func (l BasicLogger) Debug(v ...interface{})
Debug logs a message using DEBUG as log level.
func (BasicLogger) Error ¶
func (l BasicLogger) Error(v ...interface{})
Error logs a message using ERROR as log level.
func (BasicLogger) Fatal ¶
func (l BasicLogger) Fatal(v ...interface{})
Fatal is equivalent to l.Critical(fmt.Sprint()) followed by a call to os.Exit(1).
func (BasicLogger) Info ¶
func (l BasicLogger) Info(v ...interface{})
Info logs a message using INFO as log level.
func (BasicLogger) Warning ¶
func (l BasicLogger) Warning(v ...interface{})
Warning logs a message using WARNING as log level.
Click to show internal directories.
Click to hide internal directories.