From 32ef1207f2c0a56f861722a63c0d17e372af5574 Mon Sep 17 00:00:00 2001 From: some Date: Tue, 1 Oct 2024 19:04:38 -0400 Subject: [PATCH] Add New function for PlainLogger --- plain.go | 4 ++++ 1 file changed, 4 insertions(+) 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) }