log4net's XmlConfigurator not an attribute class?

  • Thread starter Thread starter Atiz
  • Start date Start date
A

Atiz

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
 
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
 
Back
Top