borntyping / rust-simple_logger

A rust logger that prints all messages with a readable output format.
https://crates.io/crates/simple_logger
MIT License
221 stars 48 forks source link

Customizable timestamps format #79

Closed ctaoist closed 1 year ago

ctaoist commented 1 year ago

Added with_custom_timestamps to customize timestamps format.

ctaoist commented 1 year ago

Added examples/timestamps_format.rs and could also customize format for utc timestamps now.

borntyping commented 1 year ago

Neat! I'll try and get this merged and released soon.

borntyping commented 1 year ago

Released as 4.1.0 with some minor changes - the only breaking one would be that with_custom_timestamps was renamed to with_timestamp_format. Thank you for contributing!