Documentation ¶
Index ¶
- Constants
- func Custom(level string, args ...interface{})
- func Customf(level string, format string, args ...interface{})
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func SetLogLevel(level string)
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- type Logger
- type Source
Constants ¶
View Source
const ( FATAL int = iota WARN INFO DEBUG TRACE )
Logging Levels
Variables ¶
This section is empty.
Functions ¶
func Custom ¶
func Custom(level string, args ...interface{})
Custom logs a message using provided level as log level
func Debug ¶
func Debug(args ...interface{})
Debug function logs a message using DEBUG as log level if DEBUG environment variable is enabled
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf function logs a message with arguments using DEBUG as log level if DEBUG environment variable is enabled
func Fatal ¶
func Fatal(args ...interface{})
Fatal function logs a message using FATAL as log level followed by a call to os.Exit(1)
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf function logs a message with arguments using FATAL as log level followed by a call to os.Exit(1)
func Infof ¶
func Infof(format string, args ...interface{})
Infof function logs a message with arguments using INFO as log level
func Tracef ¶
func Tracef(format string, args ...interface{})
Tracef function logs a message with arguments using TRACE as log level
Types ¶
Click to show internal directories.
Click to hide internal directories.