Logs - rejetto/hfs GitHub Wiki
We keep logs in Apache's Common Log format. To this we add an extra multi-purpose field, a dictionary/object serialized as JSON and surrounded with double quotes to comply with the log format (you need to JSON.parse twice to decode it).
Rotation
You can decide the rotation period. At the end of the period, the current log file is renamed with a timestamp appended to the name, and a new (empty) file is started. HFS currently never deletes such files, so it's up to you. Keep an eye on it before your disk gets full.