Re: problems with windows service
Steve Whitley <steve <at> nullfx.com>
2006-06-07 22:33:00 GMT
DOMConfiguratorAttribute has been depreciated for
XmlConfiguratorAttribute, but by specifying my config file (Thanks!)
things are working now.
My "AssemblyName" and "default namespace" are different, which is why
I'm guessing the config wasnt getting loaded.
Bejugam, Raghavendra (GE Comm Fin, non-ge) wrote:
>I think you are missing this in the AssemblyInfo.VB
><Assembly: log4net.Config.DOMConfigurator(ConfigFile:="log4net.config.xml", Watch:=True)>
>From: Steve Whitley [mailto:steve <at> nullfx.com]
>Sent: Wednesday, June 07, 2006 6:03 PM
>To: 'Log4NET User'
>Subject: problems with windows service
>I have created a windows service, installed it to use the (at first) the
>local system admin account, then the local system account. I have
>verified that I have the necessary permissions (by simply creating a
>file & writing to it), but log4net is showing Is...Enabled = false on
>my config looks like this:
> type="System.Configuration.IgnoreSectionHandler" />
> <!-- other settings ->
> <appendToFile value="true" />
> <rollingStyle value="Date" />
> <datePattern value="yyyy-MM-dd" />
> <staticLogFileName value="true" />
> <layout type="log4net.Layout.PatternLayout">
> <header value="[Header] " />
> <footer value="[Footer] " />
> <conversionPattern value="...(removed for email)" />
> <level value="ALL" />
> <appender-ref ref="RollingLogFileAppender" />
>I have the assembly level attribute to look for the config info in
>If I run the executable as a normal executable, all logging happens as
>it should, but when it runs as a service nothing happens (debugging
>shows that's because the Is...Enabled is false).
>anything I've left out that would enable my service to log?