Skip to content

Log file

Creates CSV log file at Service Ui backend log folder. Supported if PLC uses logging over MQTT channel.

Properties

Defined at data/config.json file.

Property Description Default
active Creates log file if true. false
filenamePattern Pattern to create file name. log_%date%_%idx%.csv
dateFormat Optional format for date inside file name. Examples: "'week'_yyyy-ww", "MM/dd/yyyy", "HH:mm:ss", ... yyyy-MM-dd_HH-mm
maxFileCount Maximal file count to create (it acts as a ringbuffer). (0..n) 0 → no limit 10
maxFileSize Maximal file size after which a new file should be created: []=bytes (0..n) 0 → no limit 10000000

Example

"logger": {
    "storage": "fileSystem",
    "cacheSize": 100,
    "file": {
        "active": true,
        "filenamePattern": "log_%date%_%idx%.csv",
        "dateFormat": "yyyy-MM-dd_HH-mm",
        "maxFileCount": 10,
        "maxFileSize": 10000000
    }