Workflow Soluiton

 View Only
  • 1.  Write to Windows Application EventLog

    Posted Jul 29, 2011 05:17 PM

    Hello - Is anyone aware of a Workflow component to write events into the Windows Application EventLog?  My understanding is that the "Create Log Entry" component doesn't do this.  If there's no native component for writing to the Windows Application EventLog, any insights as to how I could use the Code (Script) Component" to do this?  Thanks in advance for any/all insights.  Best, Tom



  • 2.  RE: Write to Windows Application EventLog

    Posted Aug 01, 2011 05:47 AM

    In SystemUtilities library is available only ReadEventLog component.

    Create Log Entry writes to an application log using native workflow engine functionality.

    You can write to Windows Event Log inside script components using e.g. .NET EventLog class from System.Diagnostics namespace:

    http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog(v=VS.90).aspx



  • 3.  RE: Write to Windows Application EventLog

    Posted Oct 19, 2011 01:42 PM

    AnaMan,

    So... WHICH application log does Create Log Entry write to? how do I have a look at it?

    Where do you suggest I write my events out to for a Windows Service Monitoring Project?

    Kindest regards,

     

    QuietLeni



  • 4.  RE: Write to Windows Application EventLog

    Posted Oct 19, 2011 02:21 PM

    Create Log Entry writes to the workflow logs located at <install>/Logs. These log entry messages are also viewable via Workflow Explorer (the Log Viewer tab). As far as logging messages for projects go, the Create Log Entry component is the way to go.



  • 5.  RE: Write to Windows Application EventLog

    Posted Oct 21, 2011 05:42 AM

    reecardo,

     

    Thanks for your reply - yes, I have found this and it could be a good place to write out the messages!

    If only I were the originator of this thread...



  • 6.  RE: Write to Windows Application EventLog

    Posted Oct 21, 2011 07:14 AM

    One other thing to note: the logging "methodology" of workflow is based on exchange queues - in this case, file exchange queues. By default, file exchanges are capped at 100K and keeps 10 files per process/source. Thus, ProcessManager could keep a set of logs, each project could keep a set of logs, etc.. This can be changed in Workflow Explorer - SymQ Configuration tab - SymQ_Core (on left) - LogFileWriter- exchange. The previous location is for WF 7.1, but is located in a similar location in the Configuration and Logging Tool of 7.0.