question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggestion: Allow starting log message on new line

See original GitHub issue

Hi,

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:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
spyro2000commented, Feb 18, 2022

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 😃

0reactions
spyro2000commented, Feb 23, 2022

I see, that’s why I suggested to add a configura… - never mind. Thanks anyway 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found