Skip to content

Commit

Permalink
Merge pull request #13 from fastbill/hotfix/add-trace-log-level
Browse files Browse the repository at this point in the history
Introduce trace log level
  • Loading branch information
perajovic authored Jan 30, 2020
2 parents 3f357f8 + 6e0f3bc commit de4069a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions observance/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
// Logger is a general interface to be implemented for multiple loggers.
type Logger interface {
Level() string
Trace(msg interface{})
Debug(msg interface{})
Info(msg interface{})
Warn(msg interface{})
Expand All @@ -37,6 +38,11 @@ func (l *LogrusLogger) Level() string {
return l.basicLogger.Level.String()
}

// Trace writes a log entry with level "trace".
func (l *LogrusLogger) Trace(msg interface{}) {
l.logger.Trace(msg)
}

// Debug writes a log entry with level "debug".
func (l *LogrusLogger) Debug(msg interface{}) {
l.logger.Debug(msg)
Expand Down

0 comments on commit de4069a

Please sign in to comment.