INNER CODE UNIT · Go
NewStdLogger
resgateio/resgate · logger/logger.go:37
func NewStdLogger(debug bool, trace bool) *StdLogger {
return &StdLogger{
log: log.New(os.Stderr, "", log.Ldate|log.Ltime|log.Lmicroseconds),
debug: debug,
trace: trace,
}
}
// Log writes a log entry
func (l *StdLogger) Log(s string) {
l.log.Print("[INF] ", s)
}
// Error writes an error entry
func (l *StdLogger) Error(s string) {
l.log.Print("[ERR] ", s)
}