rolling log
summary
This is a simple log appender for safe-keeping logs.
Why?
I want to save log to storage in safe way and be able to retrieve them later.
But the log files can be changed by other programs, so I need to keep them safe.
This is the reason why I made this appender.
How?
This appender will write logs to a file in a rolling way.
It will create a new file when the current file is full.
The old files will be kept in a separate folder.
Log provider can be use hasher and signer interface to hash and sign the log files.
Log provider keep logs in local storage, and hash and sign them.
When the log files are retrieved, the hash and sign will be checked.
If the hash and sign are not matched, the log files will be discarded.
This is to ensure the log files are not tampered.
Finally, the log files will be archived to log storage.