log4rs
log4rs copied to clipboard
Add a file heading pattern
One of my rolling log files is structured (as a csv file). It would be very helpful to specify a pattern (or even static string without placeholders) to be written to the file whenever a new file is created. Alternatively, if I could detect an empty log file before issuing the logging macro, then I could manually write the heading (subject to the constraints of the logger's pattern). I'm pretty new to rust so I'm not sure how and if I could implement this myself. Thanks.
Thanks for the suggestion @DanChadwick