Suggestion: Allow starting log message on new line
See original GitHub issueHi,
It would be much easier to read, if log statements would start after a linebreak after timestamp, file details and line number. This way the actual messages would all be alligned at the same place.
Currenty:
[Timestamp] [very-long-name-of-some-internal-or-app-component.ts] The actual
custom message
Suggestion (optional):
[Timestamp] [very-long-name-of-some-internal-or-app-component.ts]
The actual custom message
Basically, it should be possible to prefix each log message with a ‘\n’. Maybe there could be an optional config key like ‘linebreakBeforeMessage’: boolean?
Thank you 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
how to introduce new line into message-log policy
Hi - does anyone know how to force the message-logging policy to line feed at the end of a line? I have a...
Read more >How to remove or replace newline from log messages log4j
However, removing newlines altogether can make the log hard to read in certain cases. I would suggest that, instead of removing, you replace ......
Read more >nvim-cmp opens suggestions when entering a new line - Reddit
Currently nvim-cmp opens the suggestions when pressing enter and going to the next line. I often press double enter to create some more ......
Read more >Log formatters which use newlines to separate messages ...
For example, if your output format is newline-delimited, then it cannot allow raw newlines in messages and should "sanitize" by quoting them ...
Read more >Log4Net NewLine Character Problem-Apache Mail Archives - Re
Hi Ron, I thank you very much for your prompt replies. I have opened the file logmasters.log using DOS Window and it still...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Many, many thanks. Will try this and report back, if it works. 😃
EDIT: It seems to work. 👍 Would be great, if this could be configured via a simple option key in future versions 😃
I see, that’s why I suggested to add a configura… - never mind. Thanks anyway 😉