Changed output format
This commit is contained in:
parent
e5c3e8112f
commit
345af0b53f
2
slog.go
2
slog.go
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue