diff --git a/main.go b/main.go index a968379..4bdc22d 100644 --- a/main.go +++ b/main.go @@ -116,13 +116,18 @@ func (l *Logger) CombineHTTPLogs(in string, out string) { l.outputFile.WriteString(msg) } -func (l *Logger) Print(format string, v ...interface{}) { +func (l *Logger) PrintTrace(format string, v ...interface{}) { _, file, line, _ := runtime.Caller(1) msg := fmt.Sprintf(format, v...) fmt.Printf("%s: %s %d: %s\n", time.Now().Format(time.RFC3339), file, line, msg) } +func (l *Logger) Print(format string, v ...interface{}) { + msg := fmt.Sprintf(format, v...) + fmt.Printf("%s: %s\n", time.Now().Format(time.RFC3339), msg) +} + func (l *Logger) Trace(format string, v ...interface{}) { if l.outputFile == nil { return