That's the point, i don't know how to do it and this seems to be the consensus. 
Currently I'm working on a solution that provides a static WMI method that will 
fire the event for you.. unfortunately the method crashes in strange ways as 
soon as I start doing more than a simple return of the value.. anyway..

Thanks, I'll keep you updated if I find something
andreas


-----Ursprüngliche Nachricht-----
Von: Ron Grabowski [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 27. Februar 2008 19:02
An: Log4NET Dev
Betreff: Re: AW: WMI-Appender question

Can you post a non-log4net snippet showing how you're posting messages to WMI 
in non-admin mode? If you can do it outside of log4net, it should be possible 
to convert the code to work within log4net. If you can't get it to work outside 
of log4net, then you'll need to solve that issue first.

----- Original Message ----
From: Andreas Brauchli <[EMAIL PROTECTED]>
To: Log4NET Dev <log4net-dev@logging.apache.org>
Sent: Thursday, February 21, 2008 2:36:28 AM
Subject: AW: WMI-Appender question

Hi Ron,

The logging doesn't differ from the usual Log4Net style:

if (log.IsInfoEnabled) log.Info("Foo");

the application .config states:
    <appender name="WmiAppender"
              type="log4net.Appender.WmiAppender,log4net.Appender.WmiAppender" >
    </appender>

The DefaultProjectInstaller class is used and the schema registered in WMI.

I have an application that listens to these events, but these will only come in 
when the log4net-app. Is run with administrative priviledges.

Thanks,
andreas

-----Ursprüngliche Nachricht-----
Von: Ron Grabowski [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 20. Februar 2008 02:17
An: Log4NET Dev
Betreff: Re: WMI-Appender question

How do you fire using normal WMI code when the application is run in non-admin 
mode?

----- Original Message ----
From: Andreas Brauchli <[EMAIL PROTECTED]>
To: log4net-dev@logging.apache.org
Sent: Tuesday, February 19, 2008 3:21:51 AM
Subject: WMI-Appender question

I am experimenting with the WMI Appender and I found it to be just what
I want. The only issue that needs to be resolved, is how to fire events
when the application doesn't run as admin. Any solutions?

thanks,
andreas




Reply via email to