Documentation ¶
Index ¶
- Variables
- 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) GetLevel() *logging.Level
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) ResetLevel()
- func (l *Logger) SetLevel(level logging.Level)
- func (l *Logger) Trace(args ...interface{})
- func (l *Logger) Tracef(format string, args ...interface{})
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Restore func()
)
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is an adapter that allows to log using Uber's Zap wherever a Logger interface is expected.
func NewLogger ¶
NewLogger initialises a Zap logger, either by locating and loading a configuration fil from disk, or by assuming the sane defaults for a production environment.
func (*Logger) Debug ¶
func (l *Logger) Debug(args ...interface{})
Debug logs a message at LevelDebug level.
func (*Logger) Error ¶
func (l *Logger) Error(args ...interface{})
Error logs a message at LevelError level.
func (*Logger) Info ¶
func (l *Logger) Info(args ...interface{})
Info logs a message at LevelInfo level.
func (*Logger) ResetLevel ¶
func (l *Logger) ResetLevel()
func (*Logger) Trace ¶
func (l *Logger) Trace(args ...interface{})
Trace logs a message at LevelTrace level.
Click to show internal directories.
Click to hide internal directories.