Documentation
¶
Index ¶
- func DebugEnabled() bool
- func Debugf(format string, args ...interface{})
- func ErrorEnabled() bool
- func Errorf(format string, args ...interface{})
- func InfoEnabled() bool
- func Infof(format string, args ...interface{})
- func WarnEnabled() bool
- func Warnf(format string, args ...interface{})
- type Level
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugEnabled ¶
func DebugEnabled() bool
DebugEnabled returns whether output of messages at the debug level is currently enabled.
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf logs potentially verbose debug-time data
func ErrorEnabled ¶
func ErrorEnabled() bool
ErrorEnabled returns whether output of messages at the wanr level is currently enabled.
func InfoEnabled ¶
func InfoEnabled() bool
InfoEnabled returns whether output of messages at the info level is currently enabled.
func WarnEnabled ¶
func WarnEnabled() bool
WarnEnabled returns whether output of messages at the warn level is currently enabled.
Types ¶
type Level ¶
type Level int
Level is a level of logging
func ParseLevel ¶
ParseLevel parses the log level, returns Info level if not found
type Logger ¶
type Logger interface { // Debugf logs potentially verbose debug-time data Debugf(format string, args ...interface{}) // Infof logs informational data Infof(format string, args ...interface{}) // Warnf logs suspect situations and recoverable errors Warnf(format string, args ...interface{}) // Errorf logs error conditions. Errorf(format string, args ...interface{}) // Level gets the current logging level Level() Level // SetLevel set the current logging level SetLevel(level Level) // DebugEnabled returns whether output of messages at the debug level is currently enabled. DebugEnabled() bool // InfoEnabled returns whether output of messages at the info level is currently enabled. InfoEnabled() bool // WarnEnabled returns whether output of messages at the warn level is currently enabled. WarnEnabled() bool // ErrorEnabled returns whether output of messages at the error level is currently enabled. ErrorEnabled() bool }
Logger is a logging interface
Click to show internal directories.
Click to hide internal directories.