Add label to console logger.

This commit is contained in:
Daniel Theophanes
2013-03-02 22:12:42 -08:00
parent 97904ea3b6
commit 5fa3e62c6e
+3 -3
View File
@@ -5,14 +5,14 @@ import "fmt"
type ConsoleLogger struct{}
func (ConsoleLogger) LogError(format string, a ...interface{}) error {
fmt.Printf(format, a...)
fmt.Printf("E: "+format, a...)
return nil
}
func (ConsoleLogger) LogWarning(format string, a ...interface{}) error {
fmt.Printf(format, a...)
fmt.Printf("W: "+format, a...)
return nil
}
func (ConsoleLogger) LogInfo(format string, a ...interface{}) error {
fmt.Printf(format, a...)
fmt.Printf("I: "+format, a...)
return nil
}