Table of Contents

LogRotate Handler

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

Installation

We provide a VI package (*.vip) to be installed with the JKI VI Package Manager. The commercial package can be downloaded by authorized people on our Log Rotate Handler release page.

Configuration

The Create LogRotate method takes a cluster LogRotate Configuration for all specific options.

Cluster LogRotate Configuration:

For versions ⇐ 1.0.2, you have to use the file extension .log for the log file. Otherwise, it will throw an error after the second log.

Initialization

The initialization is the same as for other Log-Handler. Use the method Create LogRotateFileHandler.vi to instantiate a new LogRotate-Handler and configure it. Then wire the object together with other Log-Handlers, if applicable, as array to the Init Loggin method.

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”