... | @@ -1625,6 +1625,9 @@ CiiOldbFactory |
... | @@ -1625,6 +1625,9 @@ CiiOldbFactory |
|
CiiOldbRedisDataPointProvider
|
|
CiiOldbRedisDataPointProvider
|
|
CiiOldbRemoteDataPointProvider
|
|
CiiOldbRemoteDataPointProvider
|
|
CiiOldbRemoteFileProvider
|
|
CiiOldbRemoteFileProvider
|
|
|
|
CiiRedisClient
|
|
|
|
ThreadSubscriberConsumer
|
|
|
|
config.CiiConfigClient
|
|
```
|
|
```
|
|
|
|
|
|
Example: to turn off ERROR logs for testing the existence of non-existing datapoints, use:
|
|
Example: to turn off ERROR logs for testing the existence of non-existing datapoints, use:
|
... | @@ -2229,6 +2232,27 @@ Side-note: To configure the logging fully programmatically, without a file, you |
... | @@ -2229,6 +2232,27 @@ Side-note: To configure the logging fully programmatically, without a file, you |
|
});
|
|
});
|
|
```
|
|
```
|
|
|
|
|
|
|
|
Side-note 2: To configure the oldb logging from python, you would do:
|
|
|
|
```plaintext
|
|
|
|
from elt.log import CiiLogManager
|
|
|
|
|
|
|
|
logconf={
|
|
|
|
'log4cplus.appender.STDOUT': 'log4cplus::ConsoleAppender',
|
|
|
|
'log4cplus.appender.STDOUT.layout': 'elt::log::layout::CiiSimpleLayout',
|
|
|
|
'log4cplus.logger.CiiOldb': 'DEBUG, STDOUT',
|
|
|
|
'log4cplus.logger.CiiOldbDataPoint': 'DEBUG, STDOUT',
|
|
|
|
'log4cplus.logger.CiiOldbDirectoryTreeProvider': 'DEBUG, STDOUT',
|
|
|
|
'log4cplus.logger.CiiOldbFactory': 'TRACE, STDOUT',
|
|
|
|
'log4cplus.logger.CiiOldbRedisDataPointProvider': 'DEBUG, STDOUT',
|
|
|
|
'log4cplus.logger.CiiOldbRemoteDataPointProvider': 'DEBUG, STDOUT',
|
|
|
|
'log4cplus.logger.CiiOldbRemoteFileProvider': 'DEBUG, STDOUT',
|
|
|
|
'log4cplus.logger.CiiRedisClient': 'DEBUG, STDOUT',
|
|
|
|
'log4cplus.logger.ThreadSubscriberConsumer': 'DEBUG, STDOUT',
|
|
|
|
'log4cplus.logger.config.CiiConfigClient': 'TRACE, STDOUT',
|
|
|
|
}
|
|
|
|
CiiLogManager.configure(logconf, cpp_logging=True)
|
|
|
|
```
|
|
|
|
|
|
**List of Loggers** Generally, to learn about all loggers that are active in your application, add this (temporarily) to your application:
|
|
**List of Loggers** Generally, to learn about all loggers that are active in your application, add this (temporarily) to your application:
|
|
|
|
|
|
```plaintext
|
|
```plaintext
|
... | @@ -2242,8 +2266,6 @@ for (int i=0,n=list.size(); i<n; i++) { |
... | @@ -2242,8 +2266,6 @@ for (int i=0,n=list.size(); i<n; i++) { |
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
|
Note: With the next version of CII, the logger name will be included in log messages by default.
|
|
|
|
|
|
|
|
**Log Format** To use a different log format (which CII allows, but the Control System guidelines do not), you can modify the above config like this:
|
|
**Log Format** To use a different log format (which CII allows, but the Control System guidelines do not), you can modify the above config like this:
|
|
|
|
|
|
```plaintext
|
|
```plaintext
|
... | | ... | |