diff options
Diffstat (limited to 'internal/logger/logger.go')
-rw-r--r-- | internal/logger/logger.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/internal/logger/logger.go b/internal/logger/logger.go new file mode 100644 index 0000000..bd90308 --- /dev/null +++ b/internal/logger/logger.go @@ -0,0 +1,27 @@ +package logger + +import ( + "fmt" + + "github.com/rs/zerolog" +) + +type Logger struct { + zerolog.Logger +} + +func (l Logger) Errorf(msg string, args ...interface{}) { + l.Error().Msg(fmt.Sprintf(msg, args...)) +} + +func (l Logger) Warningf(msg string, args ...interface{}) { + l.Warn().Msg(fmt.Sprintf(msg, args...)) +} + +func (l Logger) Infof(msg string, args ...interface{}) { + l.Info().Msg(fmt.Sprintf(msg, args...)) +} + +func (l Logger) Debugf(msg string, args ...interface{}) { + l.Debug().Msg(fmt.Sprintf(msg, args...)) +} |