|
I'm not sure if this problem is related to the change (setting the lockingtype to minimalLock) that I just made. I am now seeing too many duplicate log statements in my log file. This is the first time I'm seeing this. Here is the sample of my logs
2005-11-07 08:57:17,925 INFO : busTag.clsRetrieveTag.Retrieve() - Leaving 2005-11-07 08:57:17,925 INFO : busTag.clsRetrieveTag.Retrieve() - Leaving 2005-11-07 08:57:17,925 INFO : busTag.clsRetrieveTag.Retrieve() - Leaving 2005-11-07 08:57:17,925 INFO : busTag.clsRetrieveTag.Retrieve() - Leaving 2005-11-07 08:57:17,925 INFO : busTag.clsRetrieveTag.Retrieve() - Leaving 2005-11-07 08:57:17,925 INFO : busTag.clsRetrieveTag.Retrieve() - Leaving 2005-11-07 08:57:17,925 INFO : busTag.clsRetrieveTag.Retrieve() - Leaving 2005-11-07 08:57:17,925 INFO : busTag.clsRetrieveTag.Retrieve() - Leaving 2005-11-07 08:57:18,832 INFO : UILayer.modUICommon.ProcessAction() - Leaving 2005-11-07 08:57:18,832 INFO : UILayer.modUICommon.ProcessAction() - Leaving 2005-11-07 08:57:18,832 INFO : UILayer.modUICommon.ProcessAction() - Leaving 2005-11-07 08:57:18,832 INFO : UILayer.modUICommon.ProcessAction() - Leaving 2005-11-07 08:57:18,832 INFO : UILayer.modUICommon.ProcessAction() - Leaving 2005-11-07 08:57:18,832 INFO : UILayer.modUICommon.ProcessAction() - Leaving 2005-11-07 08:57:19,613 INFO : UILayer.clsUIFlow.ProcessRequest() - Leaving 2005-11-07 08:57:19,613 INFO : UILayer.clsUIFlow.ProcessRequest() - Leaving 2005-11-07 08:57:19,613 INFO : UILayer.clsUIFlow.ProcessRequest() - Leaving 2005-11-07 08:57:19,613 INFO : UILayer.clsUIFlow.ProcessRequest() - Leaving 2005-11-07 08:57:19,613 INFO : UILayer.clsUIFlow.ProcessRequest() - Leaving 2005-11-07 08:57:19,613 INFO : UILayer.clsUIFlow.ProcessRequest() - Leaving 2005-11-07 08:57:19,613 INFO : UILayer.clsUIFlow.ProcessRequest() - Leaving 2005-11-07 08:57:19,613 INFO : UILayer.clsUIFlow.ProcessRequest() - Leaving 2005-11-07 08:57:19,613 INFO : UILayer.clsUIFlow.ProcessRequest() - Leaving
Does anybody know how to solve this? Nicko, I did read this article (http://logging.apache.org/log4net/release/manual/introduction.html#HC-7189308) but I don't know what to do next. Why am I seeing this behavior only now?
I feel like I'm in an infinite loop here. One issue is solved, the next one pops up and the next one and the next.....
Appreciate your help.
-----Original Message-----
I figured it out. Here it is.
log4net.Appender.RollingFileAppender.LockingModelBase m_lockingType=null; m_lockingType = new log4net.Appender.RollingFileAppender.MinimalLock(); oRollingFileAppender.LockingModel = m_lockingType;
-----Original Message-----
I have tried
log4net.Appender.RollingFileAppender.LockingModelBase m_LockingType = log4net.Appender.RollingFileAppender.MinimalLock; oRollingFileAppender.LockingModel = m_LockingType;
log4net.Appender.RollingFileAppender.LockingModelBase m_LockingType = log4net.Appender.RollingFileAppender+MinimalLock; oRollingFileAppender.LockingModel = m_LockingType;
Both of them don't work. Please help me!
-----Original Message-----
How do I write this line in my code? I don't have a
config file. This line gives me errors. log4net.Appender.RollingFileAppender.MinimalLock; -----Original Message----- By default the log4net FileAppender takes an exclusive
write lock on the <lockingModel type="log4net.Appender.FileAppender+MinimalLock" /> This locking model takes a write lock on the file as
each logging event An example configuration is: <appender name="FileAppender"
type="log4net.Appender.FileAppender"> Cheers, > -----Original Message----- |
Title: RE: What do I need to do to get rid of this error? Please help
- Re: What do I need to do to get rid of this error? Pleas... Shireesh Thanneru
- RE: What do I need to do to get rid of this error? Pleas... Ramaa Davanagere
- RE: What do I need to do to get rid of this error? Pleas... Ramaa Davanagere
- RE: What do I need to do to get rid of this error? ... Georg Jansen
- Re: What do I need to do to get rid of this err... Baron Schwartz
- RE: What do I need to do to get rid of this error? Pleas... Nicko Cadell
- RE: What do I need to do to get rid of this error? Pleas... Ramaa Davanagere
- RE: What do I need to do to get rid of this error? Pleas... Ramaa Davanagere
- RE: What do I need to do to get rid of this error? Pleas... Ramaa Davanagere
- RE: What do I need to do to get rid of this error? Pleas... Ramaa Davanagere
- RE: What do I need to do to get rid of this error? ... Shireesh Thanneru
- RE: What do I need to do to get rid of this error? Pleas... Göran Roseen
- RE: What do I need to do to get rid of this error? Pleas... Georg Jansen
