Logger Section

The "Logger" section provides configuration settings that enable you to specify the full path to the directory where log files are written.

"Logger": {
   "LogFileName": "<log-file-path>",
   "MaxLevel": "<log-level>",
   "Delay": <delay-in-milliseconds>,
   "RotateSize": <size-in-megabytes>,
   "RotateKeep": <number>,
   "Sink": "<File-or-Console>"
}

The "Logger" parameters are listed in the following table.

Parameter Description
LogFileName

Full path to the directory where log files are written. This is ignored if the value of the Sink parameter is set to "Console".

This unique directory name cannot be shared if multiple JadeEventProducer.exe applications are run.

MaxLevel Maximum log level (for example, "Debug", "Info", "Warn", or "Error").
Delay

Milliseconds before log messages are flushed to disk. Severity warn or above are always immediately flushed. If not set, it defaults to 1000 (1 second). It has no effect if the value of the Sink parameter is set to "Console".

RotateSize If set, log files will be rotated when reaching the specified size in megabytes. Setting to zero (0) disables log rotation. It has no effect if the value of the Sink parameter is set to "Console".
RotateKeep

Number of old logs to keep before deletion. It is ignored if rotation is not enabled.

Sink Medium to which to log. Valid options are "File" to log the file specified by LogFileName or "Console" to log to the stdout file stream. The default value is "File".

The following is an example of the Logger section.

"Logger": {
    "LogFileName": "C:\\Events\\Logs\\JadeEventProducer_Info.log",
    "MaxLevel" : "Info"
}