Root logging appender definitions
File log4j2.xml contains two root logging appender definitions.
|
Defines how PolicyCenter sends logging messages to the application console. |
|
Defines the main, rollover log for the PolicyCenter application. |
File log4j2.xml
defines the Console and
DailyFileLog appenders
as root logging categories by using the <Root> subelement on the
<Loggers> element.
<Configuration>
<Loggers>
<Root level="info">
<AppenderRef ref="Console"/>
<AppenderRef ref="DailyFileLog"/>
</Root>
...
</Loggers>
</Configuration>
Notice the following:
- The
levelattribute sets the logging level toinfofor all the listed appenders and those appenders that inherit from listed appenders. - The
refattribute specifies the name of the associated appender.
See also
