RE: Question about ConfigurationResetEvent

2007-10-29 Thread Marc Lewandowski
While it might boost efficiency slightly, it seems like a bad idea to depend on the logging layer for core functionality. Given your requirement and concern for efficiency, I would write my own (or maybe pilfer L4N's) watching code, then reconfigure L4N from my code. The separation of concerns is

RE: FileAppender+MinimalLock not working as expected - FIXED!!

2007-04-05 Thread Marc Lewandowski
I don't think the problem was really the MinimalLock at all (ultimately). For instance, I can view a log file in Notepad, and it will continue to be updated, without using MinimalLock (confirm this for yourself). The problem is how you are opening the file. I believe the StreamReader constructor

Why ThreadId and not Hash Code?

2006-08-09 Thread Marc Lewandowski
Title: Message From the .NET SDK:   GetHashCode provides identification for managed threads. For the lifetime of your thread, it will not collide with the value from any other thread, regardless of the application domain from which you obtain the value. Note   An operating-system ThreadI

RE: log4net exception handling

2005-12-12 Thread Marc Lewandowski
Title: Message More generally, if your components are prone to "hanging," this seems like a larger problem than a logging issue.  You may want to design the observer app to watch the components themselves, then start alerting as soon as the hang occurs.   -Marc -Original Message---

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: line numbers of exceptions no longer show

2005-04-22 Thread Marc Lewandowski
You've got it right. That is my experience as well. -Marc -Original Message- From: Sam Smoot [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 8:44 PM To: Log4NET User Subject: Re: line numbers of exceptions no longer show Don't line numbers only show in debug builds? Without t

RE: Log4Net only for the committed techies

2005-03-19 Thread Marc Lewandowski
See http://logging.apache.org/log4net/release/manual/faq.html#HC-14456678. This is nothing to get upset about. Really, we're talking about doing the same thing two different ways. Log4net's approach is minimal, Nlog's is maximal. The minimal approach requires more code to call, but allows for a

RE: can one use >1 appender and to have "fail-over" logging

2004-11-17 Thread Marc Lewandowski
Nicko, Just for clarity, though: if a logger has two appenders and one fails, the logger will continue logging to the "remaining" appender? -Marc -Original Message- From: Nicko Cadell [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 2:39 PM To: Log4NET User Subject: RE: can on

Poll: mission-critical use of log4net

2004-11-15 Thread Marc Lewandowski
Title: Message On a previous thread the issue of log4net's fitness-of-purpose for more mission-critical logging came up.  As you may know, log4net makes no claim to reliability, only to being a fail-stop (near-silent fail) logging system.   Nonetheless, it is a very clean, usable, and easily

RE: DomConfigurator exception?

2004-11-10 Thread Marc Lewandowski
Title: Message Benjamin,   One other thing: log4net's failure isn't necessarily silent.  If there is a configuration error or some other issue that stops log4net from logging, it writes a single message to System.Console.Error (see same link as previous).   -Marc -Original Message-

RE: DomConfigurator exception?

2004-11-10 Thread Marc Lewandowski
Title: Message Benjamin,   Actually, the uses you envision, while they would be really great to have in a product as flexible as log4net, would be outside the intended uses of the product.  Not that you can't, just that you do so at your own risk.  See http://logging.apache.org/log4net/releas

RE: ConversionPattern for PatternLayout

2004-10-08 Thread Marc Lewandowski
Title: Message Ayende,   Check out the SDK docs under "PatternLayout class".   -Marc -Original Message-From: Ayende Rahien [mailto:[EMAIL PROTECTED] Sent: Friday, October 08, 2004 4:45 PMTo: 'Log4NET User'Subject: ConversionPattern for PatternLayout Where can I get t