CompleteFTP's sophisticated logging system is based on log4net. log4net is highly configurable. If modifications are to be made to the log4net configuration then the full log4net configuration should be placed into a file called LogConfig.xml, which should be placed in the directory, C:\ProgramData\Enterprise Distributed Technologies\Complete FTP\Logs. This will prevent changes from being overwritten when CompleteFTP is upgraded. The default log4net configuration may be found in C:\Program Files (x86)\Complete FTP\Server\CompleteFTPService.exe.config. The XML node, <log4net>, and all of its sub-nodes, should be copied into the LogConfig.xml file and used as a basis for a new configuration.
It is sometimes a requirement to direct logging output to syslog. This is normally a daemon that listens on UDP port 514. This can be done via the following steps.
and add an appender reference to the list of existing appenders:
<appender name="Syslog" type="log4net.Appender.RemoteSyslogAppender"> <param name="RemoteAddress" value="127.0.0.2" /> <layout type="log4net.Layout.PatternLayout" value="%-5p %type: %m%n"/> </appender>
<root> <level value="ALL" /> <appender-ref ref="Recent Logging Messages" /> <appender-ref ref="Recent Error Messages" /> <appender-ref ref="Syslog" /> <appender-ref ref="Audit" /> <appender-ref ref="Config" /> </root>
CompleteFTP should now be logging to syslog.