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

Feature Request: Add option for LF vs CRLF end-of-line marker #273

Open
eryjus opened this issue Oct 8, 2019 · 2 comments
Open

Feature Request: Add option for LF vs CRLF end-of-line marker #273

eryjus opened this issue Oct 8, 2019 · 2 comments

Comments

@eryjus
Copy link

eryjus commented Oct 8, 2019

While I use glogg on Windows, nearly all of the logs I need to review are generated on Unix-like systems. This means I need to reformat the log from a LF end-of-line marker to a CRLF end-of-line marker. This takes time to load a log in Wordpad and save it again just to load it again in glogg -- which can be especially critical when there is a time-sensitive problem to research. Nearly all my logs are at least several hundred MB with good many of them extending into several GB.

My request is to have the option to override the end-of-line marker for the OS and have that specified as an option or even better as a radio button on the main screen. An auto-detect feature would be even better still (perhaps with the encoding detection).

@variar
Copy link
Contributor

variar commented Oct 8, 2019

Glogg uses \n character to break lines in logs on all operating systems. Could you describe what gets wrong with opening Unix-like file on Windows?

@eryjus
Copy link
Author

eryjus commented Oct 9, 2019

@variar, when there is only a LF, the file is concatenated into a single line. If that line is long enough, it is wrapped.

I have pictures of a small example attached:
Glogg LF sample

Whereas, this is what I am expecting the log to look like:
Wordpad Sample

And the version on which I took these print screens:
glogg version

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

2 participants