diff --git a/print.go b/print.go index f5037d5..9a29340 100644 --- a/print.go +++ b/print.go @@ -78,7 +78,7 @@ func print(logLevel logLevel, message string, timestamp int64, extras ...string) tmp = strconv.FormatInt(now.UnixMilli()-timestamp, 10) + "ms" } formatted = strings.ReplaceAll(formatted, GetTimediffFormat(), tmp) - fmt.Println(formatted) + fmt.Println(strings.TrimSpace(formatted)) if logLevel.level == FatalLevel.level { os.Exit(1) }