Re: Log4Net file locking

2005-11-22 Thread Ron Grabowski
I wonder if it would be worthwhile to make a ModestLock that locks the file for a few seconds after the last log in anticipation of another log message. When recording a lot of messages you'd benefit from having an exclusive lock during a lot of messages then when the system has slowed down some (i

RE: PatternLayout - add time increment

2005-11-22 Thread Ron Grabowski
public class MillisecondsSinceLastLoggingEvent : PatternLayoutConverter { private DateTime lastTimeStamp; private bool firstTimeStamp = true; protected override void Convert( TextWriter writer, LoggingEvent loggingEvent) { if (firstTimeStamp) { writer.Write

RE: Log4Net file locking

2005-11-22 Thread Marc Lewandowski
Just a thought, since it seems like what you are attempting is a real-time logging scenario, why not use a different appender more suited to the task? You could retain the rolling-file appender, but for the RichTextBox you could display the contents of a console appender (if it is in the same proce

RE: log4net not logging in web services

2005-11-22 Thread pondugud
Thank you so much, Nicko. It helped me to figure out the issue. Thanks,Prasad PondugulaCONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disc

RE: Log4Net file locking

2005-11-22 Thread Christoph Walcher
Hi,   could you send us your code where you open the log files to be displayed in your rich text box? I guess the locking problem is not at the log4net side but in your application to display the log.   Tried to open the File using   public static FileStream Open(   string path,   FileMode

AW: web.config problem

2005-11-22 Thread Wagner, Wolfgang \(LfF-R\)
hi matthew!   yes. in my Global.asax.cs i called:   protected void Application_Start(Object sender, EventArgs e) { log4net.Config.XmlConfigurator.Configure(); }   greets wolfgang Von: Matthew Brown [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 22. November 2005 14:49An: Log4NET UserBetreff

Re: web.config problem

2005-11-22 Thread Matthew Brown
Wolfgang, Do you have a call to XmlConfigurator?On 11/22/05, Wagner, Wolfgang (LfF-R) <[EMAIL PROTECTED] > wrote:hi all!i have a problem configuring the log4net rollingfileappender. my application is structured as followed:web_root+-application main +-bin +-main  +- log.txt  +- . (all the othe

Re: Log4Net file locking

2005-11-22 Thread Matthew Brown
Just a warning though, in my experience with MinimalLock, it slows down execution of the program significantly (as log4net has to lock the file, write it, unlock it, repeat)On 11/22/05, Georg Jansen <[EMAIL PROTECTED]> wrote: Hi,You can try to change the lock level:(This must be inserted in the con

RE: Log4Net file locking

2005-11-22 Thread Georg Jansen
Hi, You can try to change the lock level: (This must be inserted in the config file in the section where you define the RollingFileAppender). Best regards Georg http://www.l4ndash.com - Log4Net Dashboard / Log Viewer -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf

Log4Net file locking

2005-11-22 Thread Sankalp
Hi, We wish to port our .NET windows application logging to Log4Net but are facing a problem. Our application dispays the log file in a rich text box so that the user can debug himself what all is happening in the application. We plan to user RollingFileAppender so that logs can remain for certain

RE: PatternLayout - add time increment

2005-11-22 Thread Göran Roseen
OK, Urban, I understand. I don't think you will find what you are looking for inside the framework though. Just a question; since you use the short form format specifier "%r", does this mean that you use the old version 1.2.8? Or are you using 1.2.9? (It took me a while to find the list of forma

RE: PatternLayout - add time increment

2005-11-22 Thread Urban Jaroslav, Ing.
2 Göran Roseen Thanx for tip, but it is not exactly what I am looking for. This timestamp just shows the time increment since logging is started. I am looking rather for time difference between logged events. I found that for timestamp can be used char r, wh

web.config problem

2005-11-22 Thread Wagner, Wolfgang \(LfF-R\)
hi all! i have a problem configuring the log4net rollingfileappender. my application is structured as followed: web_root +-application main +-bin +-main +- log.txt +- . (all the other files) Web.config here is my Web.config: