Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Debug logs a _debug level message. It uses fmt.Fprint() to format args. Debug = nop // Info logs a _info level message. It uses fmt.Fprint() to format args. Info = nop // Warn logs a _warning level message. It uses fmt.Fprint() to format args. Warn = nop // Error logs an _error level message. It uses fmt.Fprint() to format args. Error = nop // Crit logs a _critical level message. It uses fmt.Fprint() to format args. Crit = nop // Debugf logs a _debug level message. It uses fmt.Fprintf() to format msg and args. Debugf = nopf // Infof logs a _info level message. It uses fmt.Fprintf() to format msg and args. Infof = nopf // Warnf logs a _warning level message. It uses fmt.Fprintf() to format msg and args. Warnf = nopf // Errorf logs a _error level message. It uses fmt.Fprintf() to format msg and args. Errorf = nopf // Critf logs a _critical level message. It uses fmt.Fprintf() to format msg and args. Critf = nopf )
Functions ¶
func IsEnabledFor ¶
IsEnabledFor returns whether the default logger is enabled for the level.
func SetDefaultLogger ¶
SetDefaultLogger set the logger as the defaultLogger. The logging functions in this package use it as their logger. This function should be called before using below functions.
func SetLogFunc ¶
SetLogFunc set the log function with specified level for the defaultLogger. This function should be called before SetDefaultLogger.
func SetLogfFunc ¶
SetLogfFunc set the logf function with specified level for the defaultLogger. This function should be called before SetDefaultLogger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.