PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework log4net's XmlConfigurator not an attribute class?

Reply

log4net's XmlConfigurator not an attribute class?

 
Thread Tools Rate Thread
Old 07-03-2007, 06:38 AM   #1
Atiz
Guest
 
Posts: n/a
Default log4net's XmlConfigurator not an attribute class?


Hi all,
I'm trying to use log4net in my c#.net project. I am able to use the
log4net functiosn without any problem but when I want to make my proj
find the config file in assemblyinfo.cs, the compiler complained that
XmlConfigurator is not an attribute class:

[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log.config",
Watch = true)]

what can I do to solve this problem? I have already referenced
log4net.dll in my proj. The examples that I can search online were
only to add this line to assemblyinfo.cs to find the required config
file.

TIA
Atiz

  Reply With Quote
Old 08-03-2007, 02:19 AM   #2
Atiz
Guest
 
Posts: n/a
Default Re: log4net's XmlConfigurator not an attribute class?

I realised that because the assembly level attributes cannot be
retrieved in Compact Framework 1.0, all the configuration assembly
attributes were removed from log4net.
That's why even in CF 2.0, it doesn't work too.

Atiz

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off