code:commercial:hse-logger_extensions
HSE Logger Extensions
Commercial add-Ons for our HSE Logger that extend the basic functionality
Contents
Usage of Log Handler
After installation of the VI Package, Log-Handlers can be initiated in the project. The following example shows an advanced configuration which makes use of an ini file. Depending on your needs it may be useful to register multiple Log-Handlers, e.g. to pass messages of all levels to the Event-Handler, only write messages with level >= debug into the log file and save all message with level >= error to a database.
example content of config.ini: [log] ; Possible levels: DEBUG, INFO, WARNING, ERROR, CRITICAL FileHandler-Level = DEBUG FileHandler-Path = MyLogFile.log EventHandler-Level = DEBUG DBHandler-Level = DEBUG ; Configuration for log rotate LogRotate_Rotations = 6 LogRotate_MaxSize = 0 ; Possible periods: None, Hourly, Daily, Weekly, Monthly LogRotate_Period = Monthly LogRotate_ComprCMD = "" LogRotate_ComprExt = ""
code/commercial/hse-logger_extensions.txt · Last modified: 2021/06/25 06:43 by alexander.elbert