saleem-mirza / serilog-sinks-sqlite

A Serilog sink that writes to SQLite
Apache License 2.0
56 stars 44 forks source link

Changing timestamp format to use millisecond precision #33

Closed dahovey closed 1 year ago

dahovey commented 3 years ago

The current precision of the timestamp (second) does not provide enough detail, especially in multi-threaded environments. Added constant variable for the format and added millisecond precision.

According to official SQLite documentation millisecond precision is supported. https://www.sqlite.org/lang_datefunc.html#time_values