User Tools

Site Tools




HSE-Logger Extensions

LogRotate Handler

This extension for the default FileHandler can rotate log files like the Linux Logrotate command.

Configuration option:

  • Rotate by time
    • hourly
    • daily
    • weekly
    • monthly
  • Rotate by file size
    • Any filesize in Bytes
  • Compression
    • If you provide a compression command (e.g. to 7-Zip on windows or to GZip on Linux).

Compression CMD examples

7-Zip on Windows with zip file format:

“C:\Program Files\7-Zip\7z.exe” a -tzip “$OUTPUT” “$INPUT”

GZip on Linux:

gzip “$INPUT”

code/commercial/hse-logger_extensions.txt · Last modified: 2020/03/26 13:32 by manuel.sebald