Root logging appender definitions

File log4j2.xml contains two root logging appender definitions.

Console

Defines how PolicyCenter sends logging messages to the application console.

DailyFileLog

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 level attribute sets the logging level to info for all the listed appenders and those appenders that inherit from listed appenders.
  • The ref attribute specifies the name of the associated appender.

See also