Thanks to visit codestin.com
Credit goes to github.com

Skip to content

increase log timestamp resolution to milliseconds#1342

Open
jelmd wants to merge 1 commit intocoturn:masterfrom
jelmd:#1341_improve_logging
Open

increase log timestamp resolution to milliseconds#1342
jelmd wants to merge 1 commit intocoturn:masterfrom
jelmd:#1341_improve_logging

Conversation

@jelmd
Copy link
Contributor

@jelmd jelmd commented Dec 6, 2023

If --new-log-timestamp is enabled and the --new-log-timestamp-format ends with %N, the time gets formatted as UTC timestamp whereby %N gets replaced by the microseconds part of the current time.

@jelmd jelmd changed the title increase log timestamp resolution to microseconds increase log timestamp resolution to milliseconds Dec 6, 2023
@KangLin
Copy link
Contributor

KangLin commented Dec 7, 2023

It is recommended to use a mature logging library. #1344

@jelmd
Copy link
Contributor Author

jelmd commented Dec 7, 2023

Yes, but this requires a lot more work, refactoring. So 'til someone gets the time to do it, this fills the gap.

If --new-log-timestamp is enabled and the --new-log-timestamp-format
ends with %N, the time gets formatted as UTC timestamp whereby %N
gets replaced by the microseconds part of the current time.
@jelmd jelmd force-pushed the #1341_improve_logging branch from 9cb1c28 to f1d97a3 Compare December 8, 2023 16:42
@jelmd
Copy link
Contributor Author

jelmd commented Dec 8, 2023

fixes #1341

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

Successfully merging this pull request may close these issues.

3 participants