I need to log information with the following requirements:
- it is for writing data to files, that will latter be processed
- output lines have a predefined structure
- has to be really fast
- it should buffer the data and write it to files in background.
- it should support rotating the file and also should allow manual file rotation whenever required
Do you happen to know any good library that supports this? Or would you recommend writing it on my own? I wouldn't mind implementing one on my own, but I would like to know what my options are before taking a decision.