Public Member Functions | |
void | setFilters (FiltersVector filters) |
void | setAudience (EngineAudienceHelper newAudience) |
EngineAudienceHelper | getAudience () |
void | setDiscardLevel (LogTypeHelper discardLevel) |
FiltersVector | getFilters () |
final boolean | match (ILogEntry log) |
LogTypeHelper | getActualDiscardLevel () |
Protected Attributes | |
volatile LogTypeHelper | actualDiscardLevel = null |
Private Member Functions | |
boolean | checkAudience (ILogEntry log) |
Private Attributes | |
EngineAudienceHelper | audience = EngineAudienceHelper.NO_AUDIENCE |
FiltersVector | filters = null |
The purpose of this object is to have a centralized way to check each log against the given set of constraints before deciding it can be injected in the system.
In particular it checks a log against the followings:
|
Check if a log matches with the audience
|
|
Return the discard level used to filter out logs.
|
|
|
|
|
|
Check if the passed log matches with the constraints. The log is checked in the following order:
|
|
Set the audience
|
|
Reimplemented in com::cosylab::logging::engine::ACS::ACSLogRetrieval.
|
|
Set the filters to apply to incoming logs before sending to the listeners
|
|
The discard level |
|
The audience. Only the logs for the defined audience will be forwarded to the listeners.
|
|
The filters to apply before publishing logs to the listeners. The filters are not applied to XML listeners. These filters are applied after the audience. |