Re: Log4Net and Powershell
HI Yes, I mamanged to kick it into live. I guess you have the following problem: The App-Domain is definied by the Powershell. This is, why the workingdir of your powershell-snapin is not the path where your dll is located, but the path of PowerShell's exe. There is more than one way to specify where the location of the configfile. Let me know if you still need to see some lines of code.
Is there a log reloaded event?
We have converted some of our legacy unmanaged code to use log4net through wrapper classes. For efficiency, we cache the various IsEnabled properties that our unmanaged code uses. Because it is cached, we need to know when XmlConfigurator reloads a changed configuration file so that we can clear our cache. I have searched the SDK docs, but I couldn't find any events that I could subscribe to. Am I missing something or does anyone have a suggestion how I can determine when the log configuration is loaded/reloaded? Thanks in advance... Rob Prouse Framework Developer Ivara
Re: Is there a log reloaded event?
http://logging.apache.org/log4net/release/sdk/log4net.Repository.ILoggerRepository.ConfigurationChanged.html - Original Message From: Rob Prouse [EMAIL PROTECTED] To: log4net-user@logging.apache.org log4net-user@logging.apache.org Sent: Thursday, March 13, 2008 4:09:11 PM Subject: Is there a log reloaded event? We have converted some of our legacy unmanaged code to use log4net through wrapper classes. For efficiency, we cache the various IsEnabled properties that our unmanaged code uses. Because it is cached, we need to know when XmlConfigurator reloads a changed configuration file so that we can clear our cache. I have searched the SDK docs, but I couldn't find any events that I could subscribe to. Am I missing something or does anyone have a suggestion how I can determine when the log configuration is loaded/reloaded? Thanks in advance... Rob Prouse Framework Developer Ivara
RE: Log4Net and Powershell
Hi, I'd like to see your code. I am not yet convinced using Log4net within Powershell is a viable option...?? -Original Message- From: Daniel Marohn [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 4:13 AM To: Log4NET User Subject: Re: Log4Net and Powershell HI Yes, I mamanged to kick it into live. I guess you have the following problem: The App-Domain is definied by the Powershell. This is, why the workingdir of your powershell-snapin is not the path where your dll is located, but the path of PowerShell's exe. There is more than one way to specify where the location of the configfile. Let me know if you still need to see some lines of code.