Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Automation Anywhere Server
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Server Post messages and questions related to Automation Anywhere Server here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2009, 10:46 AM
FrankBradley FrankBradley is offline
Junior Member
 
Join Date: Jun 2009
Posts: 29
Default Windows Event Logging

Does anybody know if it is possible to place events into the Windows Application Event log from within AA Server/Client ?
__________________
Frank Bradley
Centah Inc
Reply With Quote
  #2 (permalink)  
Old 07-20-2009, 02:19 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello Frank,

Windows Event Log is handled by system only however, using Manage Windows Control command we can get the list of events in it.

If you can elaborate your requirement, we can suggest a viable solution.
Reply With Quote
  #3 (permalink)  
Old 07-23-2009, 03:18 AM
Olanrewaju Sampo Olanrewaju Sampo is offline
Junior Member
 
Join Date: Jul 2009
Posts: 2
Default

Windows Event Log is the rewritten event tracing and logging architecture introduced with Windows Vista.Windows Event Log has been rewritten around a well-defined structured XML log format and a designated log type to allow applications to more precisely log events and make it easier for support technicians and developers to interpret the events.
Reply With Quote
  #4 (permalink)  
Old 07-23-2009, 06:01 AM
FrankBradley FrankBradley is offline
Junior Member
 
Join Date: Jun 2009
Posts: 29
Default

What we would like to be able to do is have a TASK create log entries within the Windows Even Log system. This is for server management and also to assist developers. The software does have a limited ability of generating a LOG file but this is an external text file that would require the creation of processes to collect the file and transfer that information.

Well we have added the ability by creating a C# application that is now being called from our TASK. As an example of what is being done.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Text;

namespace cs_logger
{
class Program
{
public static void Main(string[] args)
{
// Create the source, if it does not already exist.
String errorMessage = "Error Occurred: Critical Error has been flagged. Application has been terminated until the file critical_fault_sap has been removed";

if (!EventLog.SourceExists("csHdcAutomation", "."))
{
//An event log source should not be created and immediately used.
//There is a latency time to enable the source, it should be created
//prior to executing the application that uses the source.
//Execute this sample a second time to use the new source.
EventLog.CreateEventSource("csHdcAutomation","Cent ah",".");
// The source is created. Exit the application to allow it to be registered.
return;
}

// Create an EventLog instance and assign its source.
EventLog myLog = new EventLog();
myLog.Source = "csHdcAutomation";
myLog.WriteEntry(errorMessage,EventLogEntryType.Er ror);
myLog.Close();

}
}
}


So the above code generates an entry in the Windows Event Log four our application that indicates an issue so that it is logged by the server management software and that will trigger other events that would correct what ever issue.

So being able to create Event log entries within the scripting environment would be very handy since it would reduce the overhead of including the 3rd application and execution.
__________________
Frank Bradley
Centah Inc
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 02:16 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved