Drakulix / simplelog.rs

Simple Logging Facility for Rust
https://docs.rs/simplelog/
Apache License 2.0
414 stars 71 forks source link

question: full time stamp? #127

Closed chris-stones closed 1 year ago

chris-stones commented 1 year ago

silly question.. im sure.

The time-stamp by default, is only the time., for exmaple - 16:10:15 [INFO] foo bar
would a better default be to also include the full date ?

Perhaps im being a bit of a noob? but it wasnt immediatly obvious how to configure simplelog for the timestamp im after. Is it possible?

Drakulix commented 1 year ago

Yes it is absolutely possible by using the ConfigBuilder and any of its set_time_format functions. Then initialize your logger with the Config created from the builder.