Using Logging Functionalities¶
Configuring the Logging Settings¶
The logging configuration of the Open Edge Device Kit is defined in the settings file /ipc/cfg/oedk_config.json
. The following table lists the configurable logging parameters:
Parameter | Description |
---|---|
active_log_directory | directory for active log files |
upload_log_directory | directory for uploading log files |
archived_log_directory | directory for archiving log files |
size_mb | size limit for log files |
The following extract of the Open Edge Device Kit shows an example logging configuration:
"logging": {
"active_log_directory": "/persistent_massdata/log/",
"upload_log_directory": "/persistent_massdata/tmp/logsToUpload/",
"archived_log_directory": "/persistent_massdata/tmp/archive/",
"logLevel": "INFO",
"size_mb": 20,
"size_cap_mb": 200,
"log_history_days": 8,
"upload_cycle_sec": 120
}
Automatic Log File Archiving¶
The Open Edge Device Kit regularly creates new log files and archives the previous file. This is triggered if either of the following conditions is fulfilled:
- Time: The Open Edge Device Kit creates a new log file when the first log message of a new day arrives.
- Size: The Open Edge Device Kit creates a new log file when the current file reaches the user defined size limit
size_mb
.
Log File Upload¶
The Open Edge Device Kit automatically copies archived log files into the upload folder and starts the upload.
Downloading Log Files¶
- Open Insights Hub Monitor from the Launchpad.
- Navigate to Explore / Assets
- Select the asset that represents your device.
- Open the Attachments plugin.
- Select the desired log files and click on Download at the bottom of the tab.
Except where otherwise noted, content on this site is licensed under the Development License Agreement.
Last update: May 5, 2023