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

Does Log4rs support milliseconds or microseconds format? #261

Closed
daji777 opened this issue Apr 29, 2022 · 2 comments
Closed

Does Log4rs support milliseconds or microseconds format? #261

daji777 opened this issue Apr 29, 2022 · 2 comments
Labels

Comments

@daji777
Copy link

daji777 commented Apr 29, 2022

I used log4rs , and used the following format as a self-defined type to get currrent time in the pattern , but I don't know how to output milliseconds with it . does anyone now how to do that? thanks

{d(%Y.%m.%d %H:%M:%S])}

@daji777
Copy link
Author

daji777 commented Apr 29, 2022

I found that d(%Y.%m.%d %H:%M:%S.%f) can do , but i am not sure

@estk estk added the question label Apr 30, 2022
@estk
Copy link
Owner

estk commented Apr 30, 2022

log4rs currently uses chrono for time formatting which uses the strftime rules

@estk estk closed this as completed Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants