...
That file by default, is pretty much empty. To configure a log file simply past the configuration below into that file.
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="utf-8" ?> <log4net> <appender name="LoggerWrapperAppender" type="iTsense.LoggerWrapper.Appender, iTsense.LoggerWrapper"> <ListenerPort>22000</ListenerPort> </appender> <appender name="FileAppender" type="log4net.Appender.RollingFileAppender"> <file value="${AllUsersProfile}\ITSENSE\LOG\COSWeb-log.txt" /> <appendToFile value="true" /> <rollingStyle value="Size" /> <maxSizeRollBackups value="1" /> <maximumFileSize value="10MB" /> <staticLogFileName value="true" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" /> </layout> </appender> <root> <appender-ref ref="FileAppender" /> </root> </log4net> |
...