log4rs icon indicating copy to clipboard operation
log4rs copied to clipboard

Add a file heading pattern

Open DanChadwick opened this issue 4 months ago • 1 comments

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.

DanChadwick avatar Aug 06 '25 20:08 DanChadwick

Thanks for the suggestion @DanChadwick

estk avatar Sep 05 '25 04:09 estk