Greetings,
I am using log4net 1.2beta8 against .net 1.1, developing in vs.net 2003 ...
I am trying to extend log4net with a custom appender. I took a
MsgBoxAppender class that was posted here or at the dev list and used it
as the basis for my appender. I added the new class to my console
applic
You need to double up the backslashes:
On Tue, 09 Nov 2004 17:34:23 +, Joe Joe <[EMAIL PROTECTED]> wrote:
> Log4Net 1.2.0 Beta 8 doesn't seem to like backslashes in filenames - e.g.
> the following example results in output to "logTrace.log" instead of
> "log\Trace.log":
>
> type=
Log4Net 1.2.0 Beta 8 doesn't seem to like backslashes in filenames - e.g.
the following example results in output to "logTrace.log" instead of
"log\Trace.log":
Is this a bug? I can workaround by using a forward slash or doubling the
backslash, but my administrators may forget to do this..
I got this working this weekend. It's pretty slick.
in your code.
...
log4net.MDC.Set("AnotherVariable", AnotherVariableData);
...
ILog l = LogManager.GetLogger("MyLogger");
l.Error(MyMessage,MyException);
...
In your config ...
Is there an example of adding new fields to the layout?
I would like to add fields such as internal error number,
application name, module name, etc.
Thanks,
Dave
_
On the road to retirement? Check out MSN Life Events for advice on how