Closed DnlLrssn closed 7 years ago
I'm curious what the use case is for this? What do you want to write in the header?
In my case I want to write in a CSV format for easily reading the log into a analytics tool. For this I need a header for what each column represent. However I figured there might be other reason why you might do this and it could be useful for others.
That's an interesting use case...
So, upon thinking about this... I think your specific use case is too specific. The tool you're importing data into should give you the option of setting column names. I don't think this feature is useful in enough cases to merit an API change.
Had to think and experiment quite a bit, but I have a solution now which will not require the CSV header. Thank you for considering the request.
I need a file header to be written each time a new file is created. I don't see a way to do this, especially on rotate. Will add a PR with a suggested solution.