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