You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: