Changed output format

This commit is contained in:
Matthias Fulz 2020-07-06 01:19:01 +02:00
parent e5c3e8112f
commit 345af0b53f
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import (
type SLogFormatFct func(level SLogLevel, verbose bool, timeformat string, format string, a ...interface{}) string
func defaultSLogFormatFct(level SLogLevel, verbose bool, timeformat string, format string, a ...interface{}) string {
msg := fmt.Sprintf("[%s] - ", SLogLevelToString(level))
msg := fmt.Sprintf("%s - ", SLogLevelToString(level))
if timeformat != "" {
t := time.Now()
msg = fmt.Sprintf("%s - %s", t.Format(timeformat), msg)