changeset 184:d97de6f980b4

Re #88: WinForms UI * Keep last 25 log files to stop log folder bloat
author IBBoard <dev@ibboard.co.uk>
date Sat, 30 Oct 2010 10:13:59 +0000
parents 75afd724a825
children 3458653455a1
files WarFoundry.exe.log4net
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/WarFoundry.exe.log4net	Mon Oct 18 20:00:01 2010 +0000
     1.2 +++ b/WarFoundry.exe.log4net	Sat Oct 30 10:13:59 2010 +0000
     1.3 @@ -1,1 +1,1 @@
     1.4 -<?xml version="1.0" encoding="utf-8" ?>
     1.5 <log4net>
     1.6 	<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
     1.7 		<layout type="log4net.Layout.PatternLayout">
     1.8 			<conversionPattern value="%-5p [%d{HH:MM:ss}]: %C{1}.%M() - Line: %L - %m%n" />
     1.9 		</layout>
    1.10 	</appender>
    1.11 	<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
    1.12 		<file value="logs/WarFoundry.log" />
    1.13 		<appendToFile value="false" />
    1.14 		<rollingStyle value="Size" />
    1.15 		<maxSizeRollBackups value="-1" />
    1.16 		<maximumFileSize value="100MB" />
    1.17 		<layout type="log4net.Layout.PatternLayout">
    1.18 			<conversionPattern value="%-5p [%d{HH:MM:ss}]: %C{1}.%M() - Line: %L - %m%n" />
    1.19 		</layout>
    1.20 	</appender>
    1.21 	<root>
    1.22 		<level value="DEBUG" />
    1.23 		<appender-ref ref="ConsoleAppender" />
    1.24 		<appender-ref ref="RollingLogFileAppender" />
    1.25 	</root>
    1.26 </log4net>
    1.27 
    1.28 \ No newline at end of file
    1.29 +<?xml version="1.0" encoding="utf-8" ?>
    1.30 <log4net>
    1.31 	<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
    1.32 		<layout type="log4net.Layout.PatternLayout">
    1.33 			<conversionPattern value="%-5p [%d{HH:MM:ss}]: %C{1}.%M() - Line: %L - %m%n" />
    1.34 		</layout>
    1.35 	</appender>
    1.36 	<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
    1.37 		<file value="logs/WarFoundry.log" />
    1.38 		<appendToFile value="false" />
    1.39 		<rollingStyle value="Size" />
    1.40 		<maxSizeRollBackups value="25" />
    1.41 		<maximumFileSize value="100MB" />
    1.42 		<layout type="log4net.Layout.PatternLayout">
    1.43 			<conversionPattern value="%-5p [%d{HH:MM:ss}]: %C{1}.%M() - Line: %L - %m%n" />
    1.44 		</layout>
    1.45 	</appender>
    1.46 	<root>
    1.47 		<level value="DEBUG" />
    1.48 		<appender-ref ref="ConsoleAppender" />
    1.49 		<appender-ref ref="RollingLogFileAppender" />
    1.50 	</root>
    1.51 </log4net>
    1.52 
    1.53 \ No newline at end of file