A LCEngine object can have an audience (as defined in the log_audience IDL module). If an audience is in use, a special set of filters will be applied.
It is possible to define custom filters to apply to the incoming logs. In this case, only the logs that pass all the filters are sent to the listeners. The filters do not apply to RAW (i.e. XML) log listeners. The custom filters are applied after the audience filtering.
There are three type of listeners supported: - ACSLogConnectionListener: listens events related to the connection with the logging NC and reportMessages - ACSRemoteLogListener: listens for LogEntries - ACSRemoteRawLogListener: listens for XML strings representing logs
It there are no ACSRemoteLogLiestenersRegistered then the string received from the NC is not parsed
The logs read from the NC are sent to the logRetrieval
that, in turn, send them to the registered listeners. Audience and filtering are implemented by ACSLogRetrieval
.
|
LCEngine constructor |
|
LCEngine constructor.
|
|
LCEngine constructor. This constructor allows to define a set of filters to apply to incoming logs: only the logs passing the filters are sent to the listeners.
|
|
Add a new filters to the vector of filters to apply to the incoming logs before sending to the listeners. The filter is applied as active.
|
|
Add a connection listener
|
|
Add an error listener
|
|
Add a log listener
|
|
Add a RAW log listener
|
|
Remove all the filters. After calling this method, all the received logs are forwarded to the listeners. |
|
Close the engine and free the resources.
|
|
LCEngine starts an attempt to connect to the remote system. Connection is handled in a separate Thread
|
|
LCEngine starts an attempt to connect to the remote system. Connection is handled in a separate Thread
|
|
LCEngine starts an attempt to connect to the remote system. Connection is handled in a separate Thread
|
|
LCEngine starts an attempt to connect to the remote system. Connection is handled in a separate Thread
|
|
Disconnect the remote access |
|
Enable/disable the auto reconnection
|
|
Enable or disable the dynamic change of the discard level depending on the amount of available memory.
|
|
Insert the method's description here. Creation date: (2/18/2002 9:58:30 AM)
|
|
Return the discard level in use by the engine. Note: the actual discard level may or may not be the same discard level set by the user. They differ if the user enabled the dynamic change of the discard level depending on the available memory .
|
|
|
|
|
|
|
|
Return the discard level set by the user. Note: the discard level in use can be different if the dynamic change of the discard level depending on the available memory in the engine has been activated.
|
|
Return the filters to filter the incoming logs before sending to the listeners
Implements com::cosylab::logging::engine::Filterable.
|
|
|
|
|
|
|
|
|
|
Return
|
|
Insert the method's description here. Creation date: (2/18/2002 9:58:30 AM)
|
|
Set the audience for the engine. If an audience is defined, a special set of filters is applied.
|
|
Set the connection params fro this
|
|
Set the discard level for filtering.
Note: if the dynamic change of the discard level depending on the memory usage has been activated, then the discard level effectively used by the engine might be greater then
|
|
Set the filters to apply before sending the log entries to the listener. By setting a null or empty filters disable the filtering.
Implements com::cosylab::logging::engine::Filterable.
|
|
Set the max number of logs per second to accept from the All the logs arriving after the max number has been reached will be discarded, regardless of their level. See ACSLogRetrieval for further details.
|
|
Set the max number of logs to publish to listeners. When this number has been reached, no more logs are sent to the listeners. See ACSLogRetrieval for further details.
|
|
Pause/unpause the publishing of logs to the listener The difference between pause and suspended is that when the engine is suspended all the received logs are discarded. When it is paused, the received logs are cached and published when the engine will be unpaused.
|
|
Suspend resume the notification of logs NOTE: When suspended the log discarded are lost forever
|
|
Return the number of logs waiting in the cache i.e. the logs received from the
|
|
accessType, orb and manager are used to connect to the logging channel
|
|
The audience used to filter out messages
|
|
If true the engine tries to reconnect automatically |
|
The connection is checked every CHECK_INTERVAL seconds |
|
|
|
The filters to apply to the incoming logs.
The filters are applied by |
|
|
|
|
|
|
|
|
|
|
|
|
|
|