An error used to be generated for this, but so many people complained
about this that it was reduced to a debug message. 

If  <add key="log4net.Internal.Debug" value="true"/> is set then the
following debug message is reported:


log4net: Logger: No appenders could be found for logger
[TestConsoleApp.LoggingExample] repository [log4net-default-repository]
log4net: Logger: Please initialize the log4net system properly.
log4net: Logger:    Current AppDomain context information:
log4net: Logger:       BaseDirectory   :
C:\work\cvs_root\apache\test\TestConsoleApp\build\debug\
log4net: Logger:       FriendlyName    : TestConsoleApp.exe
log4net: Logger:       DynamicDirectory:


Nicko

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 09 June 2005 07:46
> To: log4net-user@logging.apache.org
> Subject: log4net.Config.XmlConfigurator.ConfigureAndWatch()
> 
> 
> Hi 
> 
> I would like to know what will happen if I get a logger using 
> LogManager and make a log call using the logger without first 
> calling the 
> log4net.Config.XmlConfigurator.ConfigureAndWatch(configFileInf
> o). Will log4net log an error( assuming 
> log4net.internal.debug is set to true) or will it silently 
> ignore it? I tried it and it seems log4net is silently 
> ignoring it. Actually I would have expected some sort of 
> error/information logged by log4net to signal this condition. 
> Am I missing something? 
> 
> Thanks,
> Hemant 
> 
> 

Reply via email to