Documentation ¶
Index ¶
- func Debugf(format string, args ...interface{})
- func Error(err error)
- func Errorf(format string, args ...interface{})
- func Fatal(err error)
- func Fatalf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func Set(logger Logger)
- func Unset()
- func Warnf(format string, args ...interface{})
- type Level
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf writes a 'debug' message to configured logger.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf writes an 'error' message to configured logger.
func Fatal ¶ added in v0.3.4
func Fatal(err error)
Fatal writes an error value to configured logger. Application should terminate after logging.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf writes a 'fatal' message to configured logger. Application should terminate after logging.
Types ¶
type Level ¶ added in v0.3.4
type Level int
Level represents log level type.
const ( // DebugLevel represents DEBUG log level. DebugLevel Level = iota // InfoLevel represents INFO log level. InfoLevel // WarningLevel represents WARNING log level. WarningLevel // ErrorLevel represents ERROR log level. ErrorLevel // FatalLevel represents FATAL log level. FatalLevel // OffLevel represents a disabledLogger log level. OffLevel )
Click to show internal directories.
Click to hide internal directories.