curre/default_logger.go

16 lines
291 B
Go
Raw Normal View History

2022-09-10 01:19:29 +02:00
package curre
import "fmt"
type DefaultLogger struct{}
var _ Logger = &DefaultLogger{}
func (dl *DefaultLogger) Info(msg string, args ...any) {
2022-09-10 01:39:36 +02:00
fmt.Println(fmt.Sprintf(msg, args...))
2022-09-10 01:19:29 +02:00
}
func (dl *DefaultLogger) Error(msg string, args ...any) {
2022-09-10 01:39:36 +02:00
fmt.Println(fmt.Sprintf(msg, args...))
2022-09-10 01:19:29 +02:00
}