What version of log4net are you using? The documentation on the website
is for the current version of log4net: 1.2.9 beta. If you are using the
previous version: 1.2.0 beta 8, the call to Configure would look
something like this:

// configure log4net with a log4net.config located
// in the application's base directory
log4net.Config.DOMConfigurator.ConfigureAndWatch(new
System.IO.FileInfo(AppDomain.CurrentDomain.SetupInformation.ApplicationBase
+ "log4net.config"));

--- Julien Sobrier <[EMAIL PROTECTED]> wrote:
> Hello,
> I'm using log4net with .net 1.0.
> 
> It works fine when I use BasicConfigurator.Configure but doesn't
> compile 
> with XmlConfigurator.Configure: the compiler cannot fin the type of 
> namspace XmlConfigurator.
> 
> I looked into the documentation for log'net.Config, I found 
> BasicConfigurator, DOMConfigurator, but not XmlConfigurator.
> 
> Is there an error in the the online example using
> XmlConfigurator.Configure?
> 
> Thank you
> Julien
> 

Reply via email to