Add new line to console logger.
This commit is contained in:
@@ -5,14 +5,14 @@ import "fmt"
|
||||
type ConsoleLogger struct{}
|
||||
|
||||
func (ConsoleLogger) Error(format string, a ...interface{}) error {
|
||||
fmt.Printf("E: "+format, a...)
|
||||
fmt.Printf("E: "+format+"\n", a...)
|
||||
return nil
|
||||
}
|
||||
func (ConsoleLogger) Warning(format string, a ...interface{}) error {
|
||||
fmt.Printf("W: "+format, a...)
|
||||
fmt.Printf("W: "+format+"\n", a...)
|
||||
return nil
|
||||
}
|
||||
func (ConsoleLogger) Info(format string, a ...interface{}) error {
|
||||
fmt.Printf("I: "+format, a...)
|
||||
fmt.Printf("I: "+format+"\n", a...)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user