logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominik Psenner" <dpsen...@gmail.com>
Subject AW: Log4Net works in Dev without calling XMLConfigurator?
Date Mon, 17 Jun 2013 06:22:41 GMT

For what it's worth, the logging should be initialized with the default settings. That happens
to be a root logger and nothing more. So the apparently working loggers may be just an illusion.


>-----Ursprüngliche Nachricht-----
>Von: psandler [mailto:psandler70@yahoo.com]
>Gesendet: Freitag, 14. Juni 2013 14:54
>An: log4net-user@logging.apache.org
>Betreff: Log4Net works in Dev without calling XMLConfigurator?
>Stackoverflow post is here:
>Couldn’t get it working when deployed, but someone pointed out that I had
>call XMLConfigurator, which I neglected to do, despite the fact that I have
>used log4net dozens of times.  I was also missing the reference to the
>log4net section in the "configSections" area of my web.config.
>For some reason, the logging still works in my development environment (i.e.
>while debugging).
>Is this normal?  What causes log4Net to get wired up correctly even without
>the correct web.config reference and calling XMLConfigurator?
>View this message in context: http://apache-
>Sent from the Log4net - Users mailing list archive at Nabble.com.

View raw message