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

Timestamp format for logging not sufficient for analyis #1

Closed
stdx opened this issue Apr 26, 2024 · 2 comments
Closed

Timestamp format for logging not sufficient for analyis #1

stdx opened this issue Apr 26, 2024 · 2 comments

Comments

@stdx
Copy link

stdx commented Apr 26, 2024

Based on

[DBG] [26/04/2024 12:04:21] Read config file...

as an example:

Log date format is not customizable. For most use cases something like

2024-04-16 20:48:39.505 INFO  ...

would be far easier to read and parse. It also would contain inherent sorting (YYYY-MM-dd). Also the granualirity is much finer. Most execution steps happen in ms instead of seconds. Too much information is lost when logging statements in seconds only.

@stdx
Copy link
Author

stdx commented Apr 26, 2024

So basically my suggestion is:

  • configurable time format
  • better default

zlElo added a commit that referenced this issue Apr 27, 2024
@zlElo
Copy link
Owner

zlElo commented Apr 27, 2024

Hey @stdx I implemented your suggestion in this commit:c82dd7e

Greets 🍕

@zlElo zlElo closed this as completed Apr 27, 2024
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