Probably best to send this sort of query to the log4net-users list.
http://logging.apache.org/log4net/support.html
Log4net internal debugging will tell you what log4net is doing when you
try to configure it:
http://logging.apache.org/log4net/release/manual/faq.html#internalDebug
Bear in mind that
The FileAppender (and RollingFileAppender) takes an exclusive lock on
the output file. This prevents multiple applications writing to the same
log file. As you have 2 instances of the same application that are
presumably using the same log4net config file then it is rather
challenging to write to d
Ian,
As you have written a custom appender I don't know exactly what your
code is doing. The standard AdoNetAppender does cache the IDbCommand
object use to write into the database. The implementation of the command
object for SQL server does cache the value of the parameters (the
implementation m
You need to run your app with internal logging enabled. This will tell
you what configuration is being done internally.
See:
http://logging.apache.org/log4net/release/manual/faq.html#internalDebug
If the configuration is being reloaded this may cut off your previously
attached appender, as this i
Christoph,
It depends. What type of custom data do you want to log. Does it change
per log call, per thread, per application instance? How do you want to
present/render the data.
If it is string data then it can be stored in the event properties and
rendered using the %P{name} pattern layout. If
If you know which logging calls in the code you want to go into separate files
then it is best to create separate appenders for each log file as suggested
below. The code would select the logger required by calling
LogManager.GetLogger with the appropriate name, and that logger would route
thro
Due to a fix in CVS for config string parsing the backslashes in the
date pattern should no longer be escaped. Previously we required C style
escaping of strings, however this is incorrect as XML escaping is what
is actually required.
The DateTime.ToString method supports sing quote escaping of st
Noel,
Thanks for the report, I'm sure that you are aware that an intermittent
issue like this is very difficult to track down, especially if it cannot
be reproduced. The conditions under which you have observed this issue
seem strange, leaking handles and unmanaged memory, but only occurring
inter