AM cc
Subject
Please respond to RE: Lo
]
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
: 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
){ ...}
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
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
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
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
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)
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
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
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
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
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
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
14 matches
Mail list logo