Re: Partial logging with windows service

2009-12-08 Thread jclegall
Awesome. Resolved! Thanks! Alexander-106 wrote: > > Try this; > > private void GetLogger() > { > if (_log != null) return; > log4net.Config.XmlConfigurator.Configure(); > _log = LogManager.GetLogger("MyWindowsServices"); > } > > > 2

Re: Partial logging with windows service

2009-12-08 Thread Alexander
Try this; private void GetLogger() { if (_log != null) return; log4net.Config.XmlConfigurator.Configure(); _log = LogManager.GetLogger("MyWindowsServices"); } 2009/12/8 jclegall : > > I have implemented log4net for a windows service, bu

Partial logging with windows service

2009-12-08 Thread jclegall
I have implemented log4net for a windows service, but I get a partial logging. Here is the code for my windows service: private ILog _log; protected override void OnStart(string[] args) { GetLogger(); _log.Info("Starting Services"); _log.Info("Loading configuration file"); //Additional

Re: Customized mail subject fo SmtpAppender

2009-12-08 Thread Pascal ROZE
Hi Look at this: http://www.codeproject.com/KB/cs/log4net_SmtpAppender.aspx Cheers 2009/12/7 Petite Escalope > Hello, > I am using log4net for a web project and would like to make customized mail > subjects my email appender. I already tried something like : > > * * > > * public stati