Appending log messages to syslog and the console
Enable additional output destinations, called appenders.
About this task
Console and syslog appenders are pre-configured in log4j2.xml
, but they’re commented out by default.
To enable additional appenders:
Steps
-
Open the
conf/log4j2.xml
file in a text editor. -
Locate the following lines in the
<Loggers>
element:<AsyncLogger name="com.pingidentity" level="DEBUG" additivity="false" includeLocation="false"> <AppenderRef ref="File"/> <!--<AppenderRef ref="CONSOLE" />--> <!--<AppenderRef ref="SYSLOG" />--> </AsyncLogger>
If you have customized logging to enable logging for additional classes, locate the
<AsyncLogger>
element that’s relevant to the class in question. This class is defined in the<AsyncLogger>
name
attribute. -
Uncomment the
<AppenderRef>
element that applies to the appender that you want to enable.PingAccess will rescan the logging configuration within 30 seconds and make the change active automatically.
-
Save the file.