BizTalk Server Orchestration - Logging from an Orchestration Method Call

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > June 2005 > Logging from an Orchestration Method Call





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Logging from an Orchestration Method Call
Paul J. Lay

2005-06-06, 5:56 pm

I wrote a helper function which I am calling from an orchestration which is
similar to the method call sample in the SDK. It works very well but I am
wondering the easiest way to do logging from within the helper function. I
remember writing some logging functions a couple of years ago which logged
to the Windows Event Application Log. Can I do this from within the helper
function or is there a better way? Thanks for your help on this.

Best Regards,

Paul J. Lay


red

2005-06-06, 5:56 pm

Hi Paul,

You can use the expression shape within an orchestration to log information
to event log. Introduce a new expression shape and use
system.diagnosis.eventlog.writeevent("","" etc). not very sure about the
syntax.

You can also use your already written code by invoking them from an
orchestration. The custom code should be serializable i.e. should include
[serializable] arritube and should be GAC'd.

Hope this helps.

Regards,
red

"Paul J. Lay" wrote:

> I wrote a helper function which I am calling from an orchestration which is
> similar to the method call sample in the SDK. It works very well but I am
> wondering the easiest way to do logging from within the helper function. I
> remember writing some logging functions a couple of years ago which logged
> to the Windows Event Application Log. Can I do this from within the helper
> function or is there a better way? Thanks for your help on this.
>
> Best Regards,
>
> Paul J. Lay
>
>
>

red

2005-06-06, 5:56 pm

Hi Paul,

Why do you think about using Sql adapter and logging information a Sql
server database.

I am using this approach in my current project and it seems to be working
fine.

Regards,
red

"red" wrote:
[vbcol=seagreen]
> Hi Paul,
>
> You can use the expression shape within an orchestration to log information
> to event log. Introduce a new expression shape and use
> system.diagnosis.eventlog.writeevent("","" etc). not very sure about the
> syntax.
>
> You can also use your already written code by invoking them from an
> orchestration. The custom code should be serializable i.e. should include
> [serializable] arritube and should be GAC'd.
>
> Hope this helps.
>
> Regards,
> red
>
> "Paul J. Lay" wrote:
>
WenJun Zhang[msft]

2005-06-07, 7:52 am

Hi Paul,

I agree with Red. The most direct and sample way should be using
System.Diagnostics.EventLog.WriteEntry .

Thanks.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no
rights.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com