Add New function for PlainLogger

This commit is contained in:
some 2024-10-01 19:04:38 -04:00
parent 31eb913410
commit 32ef1207f2
Signed by: some
GPG Key ID: 65D0589220B9BFC8

View File

@ -20,6 +20,10 @@ func (level PlainLoggerLogLevel) String() (out string) {
type PlainLogger struct{}
func NewPlainLogger() *PlainLogger {
return &PlainLogger{}
}
func (p *PlainLogger) Log(level LogLevel, msg string) {
fmt.Printf("%s %s\n", PlainLoggerLogLevel(level), msg)
}