Can I configure xMatters to create separate log files for errors and detailed logs?

Is there a way to divide the log files so that error messages are recorded separately from the detailed logs?

To create separate log files for errors and detailed logs:
  1. On the xMatters server, open the <xMHOME>\node\assets\config\log4j.xml file in a text editor.
  2. Add the following part to the group:
<appender name="errorAppender" class="org.apache.log4j.RollingFileAppender">  
 <param name="maxBackupIndex" value="5" />  
 <param name="MaxFileSize" value="10MB"/>  
 <param name="Threshold" value="WARN"/>  
 <param name="File" value="../logs/AlarmPoint.node.error.log"/>  
 <layout>  
 <param name="ConversionPattern" value="%d [%t] %p %X{COMPANY_NAME_KEY} - %m%n"/>  
 </layout>  
</appender>  
  1. Locate the following section:
<root>  
<priority value ="WARN"/>  
<appender-ref ref="rootAppender"/>  
<!--<appender-ref ref="consoleAppender"/>-->  
</root> 
  1. Change the section to the following:
<root>  
 <priority value ="WARN"/>  
 <appender-ref ref="rootAppender"/>  
 <appender-ref ref="errorAppender"/>  
 <!--<appender-ref ref="consoleAppender"/>-->  
</root> 
  1. Save and close the log4j.xml file

The node should now write the error messages to <xMHOME>\node\logs\AlarmPoint.node.error.log

xMatters Reference

JDN-1046 Originally created by Don Clark

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk