RE: Port Number in logged message

2008-10-09 Thread Pranav Varia
modify your conversion pattern to output those properties. log4net.ThreadContext.Properties["Port"] = port; log4net.ThreadContext.Properties["Host"] = host; See http://logging.apache.org/log4net/release/manual/contexts.html for more information. Rob Prouse From: Pranav

Port Number in logged message

2008-10-08 Thread Pranav Varia
Hi Is there a config setting that enables log4net to put "port" and "hostname" information in the log messages when running in a ASP.NET Webservice (or website) ? I see conversion pattern in the FAQ and wonder if I there is a %port available? My use case is that I have multiple instances of a

Question about RollingLogFileAppender

2008-06-04 Thread Pranav Varia
Currently I have RollingLogFileAppender configured to hold a max of 20 files PER HOUR as follows: This configuration keeps last 20 files FOR EACH HOUR and hence the number of files add up indefinitely over time. Is there a way to co

RE: Throttling/Rollup feature in EventLogAppender

2008-05-03 Thread Pranav Varia
sponded to James' last message :(. I'll get moving and hopefully we can contribute this code to the community soon. Cheers, Jerry -- Forwarded message -- From: Pranav Varia <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> To: "log4net-user@logging.

Throttling/Rollup feature in EventLogAppender

2008-05-02 Thread Pranav Varia
Is there a Throttling feature available or planned in EventLogAppender. If we log to event log a message that could potentially be logged at frequency of one per incoming request to my web application, it could flood the event log with millions of messages if/when things go wrong. If there was