summaryrefslogtreecommitdiff
path: root/internal/logger/logger.go
blob: bd9030842b6b8dc49b5277a626893411dd1df37b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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...))
}