Refactor how logs are handled.
This commit is contained in:
12
log/stdout.go
Normal file
12
log/stdout.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package log
|
||||
|
||||
import (
|
||||
"log"
|
||||
)
|
||||
|
||||
type StdoutLogger struct {
|
||||
}
|
||||
|
||||
func (m StdoutLogger) WriteEntry(l LogEntry) {
|
||||
log.Printf("%-6s %s", l.Type, l.Entry)
|
||||
}
|
||||
Reference in New Issue
Block a user