Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Each log entry is appended to same line #32

Closed
klaasel opened this issue Sep 5, 2019 · 0 comments
Closed

Each log entry is appended to same line #32

klaasel opened this issue Sep 5, 2019 · 0 comments

Comments

@klaasel
Copy link

klaasel commented Sep 5, 2019

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

@klaasel klaasel closed this as completed Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant