diff --git a/plain.go b/plain.go index 83c76a5..8319d96 100644 --- a/plain.go +++ b/plain.go @@ -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) }