[
https://issues.apache.org/jira/browse/LOG4NET-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599013#action_12599013
]
siva commented on LOG4NET-156:
------------------------------
Hi Ron,
Thanks for your reply.
Please see the Log4net setting for my application
<root>
<level value="INFO"/>
<appender-ref ref="RollingLogger" />
<appender-ref ref="EventLogAppender" />
</root>
<appender name="RollingLogger"
type="log4net.Appender.RollingFileAppender">
<param name="File"
value="E:\Pages\Health\PrePricingBatch\Logs\" />
<StaticLogFileName value="false" />
<lockingModel
type="log4net.Appender.FileAppender+MinimalLock" />
<appendToFile value="true" />
<maxSizeRollBackups value="10" />
<rollingStyle value="Date" />
<datePattern value="yyyy\_MM\_dd\.\l\o\g" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%d %logger[%t]
%-5level - %m%n" />
</layout>
</appender>
Since there are many users accessing the application and want to write
the information for each process we used the locking model
"MinimalLock".
Thanks,
Siva
> Probable I/O race condition detected while copying memory.
> -----------------------------------------------------------
>
> Key: LOG4NET-156
> URL: https://issues.apache.org/jira/browse/LOG4NET-156
> Project: Log4net
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 1.2.10
> Environment: Windows XP Professional
> Reporter: siva
> Fix For: 1.2.10
>
>
> Currently we are facing some issues with the log4net configuration in our
> project. I am looking for help on this.
> We are getting the following error in the log4net log file:
> Error: Probable I/O race condition detected while copying memory. The I/O
> package is not thread safe by default. In multithreaded applications, a
> stream must be accessed in a thread-safe way, such as a thread-safe wrapper
> returned by TextReader's or TextWriter's Synchronized methods. This also
> applies to classes like StreamWriter and StreamReader.]
> We are using the rollinglogfileAppender with the rolling style as "Date" and
> the locking model as "log4net.Appender.FileAppender+MinimalLock".
> When nearly 250 users in our application tries to write to the log file it is
> coming with the above error message.
> Any help is greatly appreciated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.