Exemple #1
0
func (la *loggerAdaptor) Println(v ...interface{}) {
	log.Logfmt(1, log.SeverityInfo, "[%s] %s", la.prefix, fmt.Sprint(v...))
}
Exemple #2
0
func (la *loggerAdaptor) Printf(format string, v ...interface{}) {
	if len(format) > 0 && format[len(format)-1] == '\n' {
		format = format[:len(format)-1]
	}
	log.Logfmt(1, log.SeverityInfo, "[%s] %s", la.prefix, fmt.Sprintf(format, v...))
}