5.5.2. Sample XML Configuration for a Log Category
The following procedure demonstrates a sample configuration for a log category.
Procedure 5.2. Configure a Log Category
Define the Category
Use thecategoryproperty to specify the log category from which log messages will be captured.Theuse-parent-handlersis set to"true"by default. When set to"true", this category will use the log handlers of the root logger in addition to any other assigned handlers.<subsystem xmlns="urn:jboss:domain:logging:1.2"> <logger category="com.company.accounts.rec" use-parent-handlers="true">
<subsystem xmlns="urn:jboss:domain:logging:1.2"> <logger category="com.company.accounts.rec" use-parent-handlers="true">Copy to Clipboard Copied! Toggle word wrap Toggle overflow Set the
levelpropertyUse thelevelproperty to set the maximum level of log message that the log category records.<subsystem xmlns="urn:jboss:domain:logging:1.2"> <logger category="com.company.accounts.rec" use-parent-handlers="true"> <level name="WARN"/><subsystem xmlns="urn:jboss:domain:logging:1.2"> <logger category="com.company.accounts.rec" use-parent-handlers="true"> <level name="WARN"/>Copy to Clipboard Copied! Toggle word wrap Toggle overflow List
handlershandlersis a list of log handlers.Copy to Clipboard Copied! Toggle word wrap Toggle overflow