Files
service/stdservice/console_log.go
T
2013-03-03 20:42:58 -08:00

19 lines
421 B
Go

package stdservice
import "fmt"
type ConsoleLogger struct{}
func (ConsoleLogger) Error(format string, a ...interface{}) error {
fmt.Printf("E: "+format+"\n", a...)
return nil
}
func (ConsoleLogger) Warning(format string, a ...interface{}) error {
fmt.Printf("W: "+format+"\n", a...)
return nil
}
func (ConsoleLogger) Info(format string, a ...interface{}) error {
fmt.Printf("I: "+format+"\n", a...)
return nil
}