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
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
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
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.
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