RE: XML Layout

2004-06-08 Thread Matthew Easlea
Thanks for the help Nicko, I'm actually writing a .NET service that will run 24x7 with (hopefully) no restarts :) So I think the solution you have proposed would work in this instance of the problem. At other times, however, we would use log4net from an application and in those cases we would hav

Re: Dyanmic Levels.

2004-06-08 Thread Hollywood
> The immediate solution is just the do your own build of log4net with changed > values in the Level class and any necessary changes made to the > EventLogAppender.GetEntryType() and AspNetTraceAppender.Append() methods. That will have to do for now... even with the extra effort still better than

RE: Dyanmic Levels.

2004-06-08 Thread Nicko Cadell
> > Currently this is not supported. E.g. changing the relative > ordering > > of > the > > Info and Error levels will confuse the way EventLogAppender maps to > > event log entry types. > > So what would need to change to avoid this? Or where is the > mapping performed, as I might go ahead

RE: XML Layout

2004-06-08 Thread Nicko Cadell
Another solution is to ignore the main issue. A log file using XML format is not appendable. By this I mean that opening an existing file and appending breaks the file format. Therefore we would just say that using the FileAppender in append mode with this file format is not supported. The header

RE: XML Layout

2004-06-08 Thread Nicko Cadell
> -Original Message- > From: Ceki Gülcü [mailto:[EMAIL PROTECTED] > Sent: 08 June 2004 10:52 > To: Log4NET User > Cc: general@logging.apache.org > Subject: RE: XML Layout > > > Hi Nicko, > > We are facing exactly the same problem in log4j. As you > describe, a file handled by a Roll

Re: Dyanmic Levels.

2004-06-08 Thread Hollywood
> Currently this is not supported. E.g. changing the relative ordering of the > Info and Error levels will confuse the way EventLogAppender maps to event > log entry types. So what would need to change to avoid this? Or where is the mapping performed, as I might go ahead and make the necessary ch

RE: Dyanmic Levels.

2004-06-08 Thread Nicko Cadell
Ok, I see what you are doing. Currently this is not supported. E.g. changing the relative ordering of the Info and Error levels will confuse the way EventLogAppender maps to event log entry types. There are a couple of possible solutions: One is to define (or redefine) the logging levels in the c

Re: Dyanmic Levels.

2004-06-08 Thread Hollywood
Thats what I was thinking Chad. - Original Message - From: "Chad Myers" <[EMAIL PROTECTED]> To: "Log4NET User" Sent: Tuesday, June 08, 2004 3:34 PM Subject: RE: Dyanmic Levels. Wouldn't it make sense to allow people to specify custom levels or redefine existing ones in the config file?

RE: Dyanmic Levels.

2004-06-08 Thread Chad Myers
Wouldn't it make sense to allow people to specify custom levels or redefine existing ones in the config file? This seems to fit in with the overall philosophy of log4net (putting most, if not all the power of logging into the admin/configure-person's hands). Thoughts? -Chad -Original Messag

Re: Dyanmic Levels.

2004-06-08 Thread Hollywood
> What changes would you envision making? Especially what would you be > changing more than once? Well, any changes I make to the Log4net code needs to be updated when the next beta build comes along. But anyways, in the way things work here, we'd really like to see the INFO level being second lo

RE: Dyanmic Levels.

2004-06-08 Thread Nicko Cadell
> -Original Message- > From: Hollywood [mailto:[EMAIL PROTECTED] > Sent: 05 June 2004 15:20 > To: log4net-user@logging.apache.org > Subject: Fw: Dyanmic Levels. > > Am I correct in assuming that at this time functionality for > dynamically changing the ordering of the the Levels in the

RE: XML Layout

2004-06-08 Thread Ceki Gülcü
Hi Nicko, We are facing exactly the same problem in log4j. As you describe, a file handled by a RollingFileAppender may open and close a file multiple times, writing the header and footer as many times. If one ignores good software design principles for a moment, in particular separation of concern

RE: XML Layout

2004-06-08 Thread Nicko Cadell
Matthew, Layouts support Header and Footer properties. These are written each time the file is opened or closed respectively. The issue is that a file may be opened and closed multiple times, therefore there may be multiple headers and footers in the file. To work as an XML file there must only be

RE: XML Layout

2004-06-08 Thread Nicko Cadell
Matthew, Layouts support Header and Footer properties. These are written each time the file is opened or closed respectively. The issue is that a file may be opened and closed multiple times, therefore there may be multiple headers and footers in the file. To work as an XML file there must only be

RE: XML Layout

2004-06-08 Thread Chad Myers
People still use DTDs? Wow, that's so 1997 :) -Chad -Original Message- From: Matthew Easlea [mailto:[EMAIL PROTECTED] Sent: Monday, June 07, 2004 5:42 PM To: 'Log4NET User' Subject: RE: XML Layout Thanks Nicko, I can understand where you are coming from with keeping the XMLLayout gene