Managed File Transfer Gateway Guide

Managed File Transfer Gateway Guide

Default log4j.xml Configuration

Default log4j.xml Configuration

The logging configuration file that is shipped with
Managed File Transfer
Gateway contains the following settings.
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> <appender name="FileAppender" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="logs/gagateway.log" /> <param name="MaxFileSize" value="5MB" /> <param name="MaxBackupIndex" value="10" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd hh:mm:ss a} %-5p %m%n" /> </layout> </appender> <!-- <appender name="SyslogAppender" class="org.productivity.java.syslog4j.impl.log4j.Syslog4jAppender"> <param name="Protocol" value="udp" /> <param name="Facility" value="user" /> <param name="SyslogHost" value="localhost" /> <param name="Ident" value="gagateway" /> <param name="CharSet" value="utf-8" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%-5p %m" /> </layout> </appender> --> <logger name="com.linoma.gag" additivity="false"> <level value="info" /> <appender-ref ref="FileAppender" /> <!-- <appender-ref ref="SyslogAppender" /> --> </logger> <root> <level value="error" /> <appender-ref ref="FileAppender" /> </root> </log4j:configuration>
The comments in the file are excluded.
The
<appender name="FileAppender">....</appender>
and
<appender-ref ref="FileAppender">...</appender-ref>
sections are used for file logging.
The
<appender name="SyslogAppender">...</appender>
and
<appender-ref ref="SyslogAppender">...</appender-ref>
sections are used for Syslog logging. Syslog logging is disabled by default.

0 COMMENTS

We’d like to hear from you!