Release 1.0 - ...

<categorySources> element

The categorySources element can be used to route log entries of a specific type or category to one or more TraceListeners, as specified within the listeners element.

Logtypes like Error, Warning, Information and Trace can be prefixed by "LogType", used in the name attribute, and are then treated as special categories, allowing to route log entries of specific types to specific trace listeners.

Within the example below, all log messages of logtype Error will be routed to the database trace listener, as well as every log message within the category Parser.

Of course, the filters configuration (if any) is still being applied before routing log messages to specific trace listeners defined within the categorySources element.

Notice that the categorySources can also be used to route log messages of certain logtypes and/or categories to an additional trace listener, since it doesn't replace the specialSources configuration. And if the specialSources element contains an allEvents special source, routing every log message to e.g. the XmlFile Trace Listener, then with the example configuration below log messages of type Error as well as log messages with category Parser will be routed to both the Database Trace Listener and the XmlFile Trace Listener.

 

Expand image Example

Expand image Attributes

Expand image Parent element

Expand image Child elements

Install & Config