Configuring class or package log levels
Use the log4j2.xml file to configure the log level for a class or package.
Steps
-
Open
conf/log4j2.xmlin a text editor.Class or package loggers are defined in the
<AsyncLogger>nameattribute. For example, the following line enables cookie logging:Example:
<AsyncLogger name="com.pingidentity.pa.core.interceptor.CookieLoggingInterceptor" level="TRACE" additivity="false" includeLocation="false"> <AppenderRef ref="File"/> </AsyncLogger> -
Set the
levelvalue in the<AsyncLogger>element to one of the following values:OFF,FATAL,ERROR,WARN,INFO,DEBUG, orTRACE.Example:
To apply
TRACElevel logging for thecom.pingidentitypackage, locate the following line:<AsyncLogger name="com.pingidentity" level="DEBUG" additivity="false" includeLocation="false">
Change it to:
<AsyncLogger name="com.pingidentity" level="TRACE" additivity="false" includeLocation="false">
-
Save the file.