Each log entry is appended to same line
klaasel opened this issue · 0 comments
klaasel commented
I'm using this formatter in conjunction with https://github.com/rifflock/lfshook to save the log to a file, like this:
logger.Hooks.Add(lfshook.NewHook( LOG_FILE_PATH, &prefixed.TextFormatter{ FullTimestamp: true, TimestampFormat: "2006-01-02T15:04:05.999Z", DisableColors: runtime.GOOS == "windows", }, ))
However, when writing to the file the next log entry is appended on the same line.
Is there an option in the formatter to write it on a newline, like happens in the terminal?
EDIT: My bad, seems to be fine in a more advanced editor than Notepad