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.

Is your feature request related to a problem? Please describe. What’s the point of this line: https://github.com/ArkEcosystem/core/blob/9b1333487ea1556280f25d39254874db874a91e0/packages/core-logger-winston/lib/formatter.js#L36

Why don’t you just remove it, the log looks strange?

screen shot 2018-06-18 at 20 31 00

Describe the solution you’d like return [${timestamp}][${level}]: ${message}

Describe alternatives you’ve considered

Additional context screen shot 2018-06-18 at 20 37 27

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
spkjpcommented, Jun 18, 2018

Log output mustn’t be unnecessary hard to read. It’s easier to parse visually with the whitespace. Especially if you spent a lot of time looking at walls of text.

I’m not saying the current format can’t be improved, but let’s not make it worse.

Also your proposal is not even aligned properly. 👎

0reactions
zillionncommented, Jun 19, 2018

Well,

Also your proposal is not even aligned properly. 👎

sounded offensive. OK maybe I overreacted, I apologize.

How about: const lineSpacer = ‘\t’

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Common Log File Formats - CrowdStrike
Commonly Used Log Formats · JSON · Windows Event logs · CEF · CLF · ELF · W3C.
Read more >
Common Log Format - Wikipedia
For computer log management, the Common Log Format, also known as the NCSA Common log format, (after NCSA HTTPd) is a standardized text...
Read more >
LOG - File Format Docs
The LOG file format records the typical events that occur either in an operating system, messages between different users of a communication software...
Read more >
mod_log_config - Apache HTTP Server Version 2.4
The format argument to the LogFormat and CustomLog directives is a string. This string is used to log each request to the log...
Read more >
Log Formatting: 7 Best Practices for Readable Log Files | Scalyr
1. Make Your Log Entries Meaningful With Context · 2. Use a Standard Date and Time Format · 3. Use Local Time +...
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