You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Ja...@ubs.com on 2004/06/10 11:03:05 UTC
log4net-1.2.0-beta8: System.NullReferenceException on invalid configuration file
I got the following error from log4net-1.2.0-beta8
--
An unhandled exception of type 'System.NullReferenceException' occurred in log4net.dll
Additional information: Object reference not set to an instance of an object.
--
On invocation of
log4net.Config.DOMConfigurator.ConfigureAndWatch( new System.IO.FileInfo( "log4net.config" ));
The log4net.config file was:
--
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<appender name="A1" type="log4net.Appender.ConsoleAppender">
<!-- A1 uses PatternLayout -->
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-4r [%-12t] %-5p %c - %m%n" />
</layout>
</appender>
<root>
<level value="INFO" />
<appender-ref ref="A1" />
</root>
<logger name="Barnacle.StatusForm">
<level value="DEBUG" />
</logger>
<logger name="Barnacle.ServerConnection">
<level value="NONE" />
</logger>
</log4net>
--
Note the invaild /log4net/logger[2]/level/@value
Jason Haines
> P.S. This email address is listed incorrectly in the FAQ
> http://logging.apache.org/log4net/release/manual/faq.html
> as log4net-users@logging.apache.org (note the 's')
>
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.