Re: Including PID in log file name -- Locking Models ASP.Net

2007-10-10 Thread Jerry Shea
Has anyone worked out a way to use a RollingFileAppender with PIDs in filenames? What I would like to do is to ensure we never have more than 10MB of logs, but also to have the PID in the filename to get around ASP.NETlocking issues, and to allow multiple websites to be installed from the same

RE: Including PID in log file name -- Locking Models ASP.Net

2007-10-09 Thread Dave McEwan
You could simply grab the PID in your .Net code, and then use the NDC.Push to push it onto the stack. It will then be available for logging. pid = GetPID(); -- you need to write some code to actually get the PID using(NDC.Push(pid)) { ... all log calls will have your pid included ... }

Re: Including PID in log file name -- Locking Models ASP.Net

2007-10-09 Thread Peter Drier
Try this.. appender name=ErrorLogAppender type=log4net.Appender.RollingFileAppender file type=log4net.Util.PatternString conversionPattern value=C:\Logs\log-%date{.MM.dd.HH.mm.ss}-[%processid].log / /file threshold value=WARN/ layout type=log4net.Layout.PatternLayout

RE: Including PID in log file name -- Locking Models ASP.Net

2007-10-09 Thread Walden H. Leverich
://www.techsoftinc.com/ Quiquid latine dictum sit altum viditur. (Whatever is said in Latin seems profound.) From: Peter Drier [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 09, 2007 10:31 AM To: Log4NET User Subject: Re: Including PID in log file name -- Locking Models ASP.Net Try this.. appender name