PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
log4net's XmlConfigurator not an attribute class?
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
log4net's XmlConfigurator not an attribute class?
![]() |
log4net's XmlConfigurator not an attribute class? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

