logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdelrahman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4NET-365) Missing Logs
Date Mon, 07 Jan 2013 07:44:13 GMT
Abdelrahman created LOG4NET-365:

             Summary: Missing Logs
                 Key: LOG4NET-365
                 URL: https://issues.apache.org/jira/browse/LOG4NET-365
             Project: Log4net
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 1.2.10
         Environment: Windows 7, VS 2010, VS 2012, WCF 4 
            Reporter: Abdelrahman
             Fix For: 1.2.10

1- Create a WCF service using VS2010 that do a basic operation "GetDate" that returns a string
and also log this string into a text file using the below appender

<log4net debug="true">
		<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
			<file type="log4net.Util.PatternString" value="C:\testproj\TestLog_DEV__%property{log4net:HostName}__"/>
			<dateKind value="utc"/>
			<rollingStyle value="Composite"/>
			<rollMinuteInterval value="5"/>
			<datePattern value="yyyyMMdd\tHHmm00.lo\g"/>
			<maxSizeRollBackups value="-1"/>
			<maximumFileSize value="50KB"/>
			<layout type="log4net.Layout.PatternLayout">
				<header value="#Fields: date time c-ip s-ip cs(User-Agent) cs(Cookie) cs-uri-stem cs-uri-query&#xD;&#xA;"></header>
				<conversionPattern value="%utcdate{yyyy-MM-dd} %utcdate{HH:mm:ss} %message%newline"
			<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />

		<logger name="RollingLogFileAppender">
			<level value="Info" />
			<appender-ref ref="RollingLogFileAppender" />

2-  Create a new console application using VS 2012 and add a service reference to the wcf
service, make sure to check the option "create asynchronous operation".

3- In a for loop call the the WCF method for 40,000 times asynchronously.

4- Check the log entries in the text files, you notice that the number of log entries are
less than 40,000.  


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message