Question
OCBC Bank
SG
Last activity: 30 Aug 2023 10:27 EDT
Want to implement a logger which Logs everything writtem under log-message function to Seprate logFile
I am trying to add a new logger in the prlog4j2.xml and want to map all log-message written in the application should fall in to the new logger as well. SO that i can have a dedicated logfile for all the log-mesage written.
Is there any default category name which we can use to implement.
<category name="com.pega.pegarules.data.internal.access.ExtractParameters" additivity="false"> <priority value="info"/> <appender-ref ref="CustomLogFileForLogMessage"/> </category>
I have tried with below category name but it is not working
<Logger name="com.pega.pegarules.exec.internal.rules.methods.MethodLogMessage" level="debug"> <AppenderRef ref="CustomLogFileForLogMessage" /> </Logger>
and added below details in prlogging.xml
<category name="com.pega.pegarules.exec.internal.rules.methods.MethodLogMessage" additivity="false"> <priority value="debug"/> <appender-ref ref="CustomLogFileForLogMessage"/> </category>