John Pereira
how do i configure the calloutscript.log to be appendable.
currently this log gets overwritten on each event
i would like to retain data from this log file..
0
Comments
Please sign in to leave a comment.
Hey John, Looks like you can tweak a log4j.xml file: https://help.xmatters.com/devguide/#introtoscripting/troubleshooting/script_logging.htm?
That article says to track down the
<xMHOME>\node\assests\config\log4j.xmlfile and find thescriptLog_appenderthat should look something like this. What do you have for themaxBackupIndexandMaxFileSizein this file? It looks like the settings below should make 5 1MB files before rolling:......
<appender name="scriptLog_appender" class="org.apache.log4j.RollingFileAppender">
<param name="maxBackupIndex" value="5" />
<param name="MaxFileSize" value="1MB"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %p - %m%n"/>
</layout>
</appender>
......
<logger name="scriptLog">
<level value="ERROR"/>
<appender-ref ref="scriptLog_appender"/>
</logger>