Documentation
¶
Overview ¶
Package logger contains utilities for logging relevant information.
Index ¶
- type Level
- type Logger
- func (l Logger) Debug(args ...interface{})
- func (l Logger) Debugf(format string, args ...interface{})
- func (l Logger) Error(args ...interface{})
- func (l Logger) Errorf(format string, args ...interface{})
- func (l Logger) Fatal(args ...interface{})
- func (l Logger) Fatalf(format string, args ...interface{})
- func (l Logger) Info(args ...interface{})
- func (l Logger) Infof(format string, args ...interface{})
- func (l Logger) Warning(args ...interface{})
- func (l Logger) Warningf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level uint8
Level represents the logging Level used.
const ( // DISABLED shows no logs. DISABLED Level = iota // DEBUG designates fine-grained informational events useful to debug an application. DEBUG // INFO designates informational messages that highlight the progress of the application at // coarse-grained level. INFO // WARNING displays an alert signaling caution. WARNING // ERROR designates error events. ERROR // FATAL shows an error and exits. FATAL )
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger contains the logging options.
func (Logger) Debug ¶
func (l Logger) Debug(args ...interface{})
Debug provides useful information for debugging.
func (Logger) Error ¶
func (l Logger) Error(args ...interface{})
Error reports the application errors.
func (Logger) Fatal ¶
func (l Logger) Fatal(args ...interface{})
Fatal reports the application errors and exits.
func (Logger) Info ¶
func (l Logger) Info(args ...interface{})
Info provides useful information about the server.
Click to show internal directories.
Click to hide internal directories.