Add New function for PlainLogger
This commit is contained in:
parent
31eb913410
commit
32ef1207f2
4
plain.go
4
plain.go
@ -20,6 +20,10 @@ func (level PlainLoggerLogLevel) String() (out string) {
|
|||||||
|
|
||||||
type PlainLogger struct{}
|
type PlainLogger struct{}
|
||||||
|
|
||||||
|
func NewPlainLogger() *PlainLogger {
|
||||||
|
return &PlainLogger{}
|
||||||
|
}
|
||||||
|
|
||||||
func (p *PlainLogger) Log(level LogLevel, msg string) {
|
func (p *PlainLogger) Log(level LogLevel, msg string) {
|
||||||
fmt.Printf("%s %s\n", PlainLoggerLogLevel(level), msg)
|
fmt.Printf("%s %s\n", PlainLoggerLogLevel(level), msg)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user