Closed chris-stones closed 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 ?
16:10:15 [INFO] foo bar
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?
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.
ConfigBuilder
set_time_format
Config
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?