Adjust Logging During Runtime
You can modify and query logging settings during runtime using the following Cicode functions:
-
SetLogging()
- allows you to make changes to the current logging configuration without the need to restart a system that is already running. An optional parameter can be used to persist the settings to the INI file.
-
GetLogging()
- allows you to view current logging settings.
The parameters you can modify and query include the following:
- [CtApi]Debug
- [Debug]DriverTrace
- [Debug]SysLogSize
- [Debug]EnableLogging
- [Debug]Priority
- [Debug]CategoryFilterMode
- [Debug]CategoryFilter
- [Debug]SeverityFilterMode
- [Debug]SeverityFilter
- [Debug]LogShutdown
- [Debug]DebugAllTrans
- [IOServer]RedundancyDebug
- [General]Verbose
- [General]VerboseToSysLog
- [Trend]DebugClient
There is also a subset of the logging related INI parameters that can be modified online within the Citect.ini file, as the system will read their values periodically or on demand. The parameters you can modify in this way include the following:
- TranDebug <name>
- [PubSub]LogLevel
- [PubSub]LogDevice
- [General]ShowDriverError
- [Debug]SysLogArchive
- [Dial]DebugLevel
- [Trend]TrendDebug
The parameters that support this functionality are identified on the Logging Settings page of the Computer Setup Editor.
See Also
Published June 2018