Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrParseStrToLevel indicates that string given to function ParseLevel can't be parsed to Level. ErrParseStrToLevel = errors.New("string can't be parsed to level, use: `error`, `info`, `warning`, `debug`") )
Functions ¶
This section is empty.
Types ¶
type DisabledLog ¶
type DisabledLog struct{}
func (*DisabledLog) Debug ¶
func (l *DisabledLog) Debug(string, ...interface{})
func (*DisabledLog) Error ¶
func (l *DisabledLog) Error(string, ...interface{})
func (*DisabledLog) Info ¶
func (l *DisabledLog) Info(string, ...interface{})
type Logger ¶
type Logger interface { // Debug prints message with debug level. Debug(format string, v ...interface{}) // Info prints message with info level. Info(format string, v ...interface{}) // Error prints message with error level. Error(format string, v ...interface{}) }
Logger represents logging logic.
func NewDisabledLog ¶
func NewDisabledLog() Logger
Click to show internal directories.
Click to hide internal directories.