RE: Log4net in a windows service

2008-10-09 Thread harry . douglass
AM cc Subject Please respond to RE: Lo

RE: Log4net in a windows service

2008-10-06 Thread Radovan Raszka
] Sent: Monday, October 06, 2008 2:23 PM To: Log4NET User Subject: RE: Log4net in a windows service Radovan, LogUtil.dll This has some custom logging as well as log4net dll reference and uses a custom appender to log. This is

RE: Log4net in a windows service

2008-10-06 Thread Jeegnesh Sheth
: Log4NET User Subject: RE: Log4net in a windows service I configure log4net in main service class constructor. What kind of crash have you met - any exception (what?) ? public class IPservice : ServiceBase { ... public IPservice() { InitializeComponent(); this.CanPa

RE: Log4net in a windows service

2008-10-04 Thread Radovan Raszka
){ ...} protected override void OnStop() {...} } From: Jeegnesh Sheth [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2008 10:36 PM To: Log4NET User Subject: RE: Log4net in a windows service Radovan

RE: Log4net in a windows service

2008-10-03 Thread Jeegnesh Sheth
use your first solution. Many thanks From: Radovan Raszka [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2008 3:58 PM To: Log4NET User Subject: RE: Log4net in a windows service Ok, there is also dependency on where log4net is set up. Examples in my last mail works, if log4net is

RE: Log4net in a windows service

2008-10-03 Thread Radovan Raszka
dovan From: Jeegnesh Sheth [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2008 9:22 PM To: Log4NET User Subject: RE: Log4net in a windows service Radovan, This is how my application is s

RE: Log4net in a windows service

2008-10-03 Thread Jeegnesh Sheth
thing Thoughts/ suggestions? From: Radovan Raszka [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2008 10:41 AM To: Log4NET User Subject: RE: Log4net in a windows service there are 2 option: 1/ XmlConfigurator.Configure(); this configures log4net using app.config file, which must be in

RE: Log4net in a windows service

2008-10-03 Thread Radovan Raszka
Subject: RE: Log4net in a windows service Radovan, Can you explain: I prefer configure log4net using app.config file or by special xml file, whose location can be got using service's EXE location (Assembly.GetExecutingAssembly().Location)

RE: Log4net in a windows service

2008-10-03 Thread Jeegnesh Sheth
10:38 AM To: log4net-user@logging.apache.org Subject: RE: Log4net in a windows service Had you tried enabling lob4net debugging? Is log4net local to your service dll, or do you have it installed itno the GAC? From: Jeegnesh

RE: Log4net in a windows service

2008-10-03 Thread CLaco
Subject: RE: Log4net in a windows service Chris, My config file has the same name myservice.dll.config and I was hoping that the same attributes you have would work. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday

RE: Log4net in a windows service

2008-10-03 Thread Jeegnesh Sheth
EMAIL PROTECTED] Sent: Friday, October 03, 2008 10:21 AM To: Log4NET User Subject: RE: Log4net in a windows service Radovan, Can you explain: I prefer configure log4net using app.config file or by special xml file, whose location can be got using serv

RE: Log4net in a windows service

2008-10-03 Thread CLaco
ECTED] Sent: Friday, October 03, 2008 10:21 AM To: Log4NET User Subject: RE: Log4net in a windows service Radovan, Can you explain: I prefer configure log4net using app.config file or by special xml file, whose location can be got

RE: Log4net in a windows service

2008-10-03 Thread Jeegnesh Sheth
ght appender is called. From: Radovan Raszka [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2008 10:19 AM To: Log4NET User Subject: RE: Log4net in a windows service Hello, problem is usually caused by wrong config file location. If you run windows service, then service's

RE: Log4net in a windows service

2008-10-03 Thread Radovan Raszka
Hello, problem is usually caused by wrong config file location. If you run windows service, then service's current directory is %systemroot%\system32, not directory, where service's EXE is located on the harddisk. Because your config file is referenced by relative path, it can be searched in wrong