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 Michael <mi...@yahoo.co.uk> on 2004/07/14 10:45:50 UTC

RE: Log4net new user: error no appender found: what am I doing wr ong?

Rich,
Thanks very much for your efforts. I had the same thought as well...
I ran it under 1.2.0 beta8 and it worked!
I first downloaded 1.1.1 since I assumed that was the most recent stable non
beta code - but that simply doesn't work: it fails to read the config file
properly (doesn't recognise the <appender> tag).

Anyway, all's well that ends well.

BTW, VS.NET is fine under debug - no problems with config files.

Once again, thanks to everyone for their help.
Cheers
Michael

 

-----Original Message-----
From: Denis, Rich [mailto:Rich.Denis@ps.net] 
Sent: 13 July 2004 23:34
To: Log4NET User
Subject: RE: Log4net new user: error no appender found: what am I doing wr
ong?

One more thing.  I took your code using log4net beta8 debug build for 1.1
platform and it worked first time.  Here is what I see in the output window
of .NET.

log4net: DOMConfigurator: Configuration update mode [Merge].
log4net: DOMConfigurator: Logger [root] Level string is [DEBUG].
log4net: DOMConfigurator: Logger [root] level set to
[name="DEBUG",value=30000].
log4net: DOMConfigurator: Loading Appender [Console1] type:
[log4net.Appender.ConsoleAppender]
log4net: DOMConfigurator: Setting Property [ConversionPattern] to String
value [%date [%thread] %-5level %logger [%ndc] - %message%newline]
log4net: DOMConfigurator: Setting Property [Layout] to object
[log4net.Layout.PatternLayout]
log4net: DOMConfigurator: Created Appender [Console1]
log4net: DOMConfigurator: Adding appender named [Console1] to logger [root].
log4net: DOMConfigurator: Hierarchy Threshold []

Rich Denis
perotsystems(tm)


972.577.5869 Wk
rich.denis@ps.net


-----Original Message-----
From: Denis, Rich 
Sent: Tuesday, July 13, 2004 5:27 PM
To: Log4NET User
Subject: RE: Log4net new user: error no appender found: what am I doing wr
ong?

That is what I was going to suggest.  In a debug scenario you may run into
that.  Monitor the directory and see if the file is there and if it gets
deleted.  If so you may try putting a breakpoint on the entry point and wait
for the config file to get re-created.   

Rich Denis
perotsystems(tm)


972.577.5869 Wk
rich.denis@ps.net

-----Original Message-----
From: David Anderson [mailto:david@dmaassociates.co.uk] 
Sent: Tuesday, July 13, 2004 4:59 PM
To: Log4NET User
Subject: Re: Log4net new user: error no appender found: what am I doing
wrong?

Michael wrote:

>Rich,
>Thanks for the info, but I'm still struggling. Here's my new code: I'm just
>using the console appender:
>
>  
>
Michael,
Are you using Visual Studio? I have found that VS seems to delete the 
config file when building. Could this be part of the problem?

Regards
David

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004