Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
func New ¶
New will create a Logger from an existing log.Logger, adding methods for debug logs. Debug messages will be logged or ignored depending on their debug level. By default, the max debug level is -1, meaning all debug logs are dropped (ignored).
func (*Logger) Debug ¶
Debug will call the Print method if level is less than or equal to the max debug level for the Logger.
func (*Logger) Debugf ¶
Debugf will call the Printf method if level is less than or equal to the max debug level for the Logger.
func (*Logger) Debugln ¶
Debugln will call the Println method if level is less than or equal to the max debug level for the Logger.