tracking status of windows services on EventLog in outsystems

tracking status of windows services on EventLog in outsystems

  
Hi,

We have a set of services running on windows.These services will be running every 1 minute and we are logging the status such as started,stopped,error details etc of these services in Windows Event Log.So I want to track or show  the status of these services logged in event log in outsystems webscreen.How can we achieve this functionality in outsystems.

Thanks,
Prashanth
I think you need to create an extension for it.
Takes from MSDN and instead of Console you create a recorldlist ofcourse.
(And I expect the extension-usre need to have certain right to be able to access it)


using System;
using System.Diagnostics;

class MySample{

    public static void Main(){

        EventLog myLog = new EventLog();
        myLog.Log = "MyNewLog";                      
        foreach(EventLogEntry entry in myLog.Entries){
            Console.WriteLine("\tEntry: " + entry.Message);
        }    
    }       
}