Thursday 12 October 2017

Enabling Logging Mechanism in BizTalk Server | Tracing using Log4Net


In this article, we will see now to enable logging using log4net with BizTalk. I have an existing pass through BizTalk application, which receives message using file adapter and through orchestration pushes it to another folder location.

Lets build a custom logger; add the reference of Log4net and implement custom logger using using the Log4net as shown below,

Build and Gac the custom logger library and add this reference to BizTalk project. Add a variable of logger class and then start logging traces using custom logger inside expersion shape as shown below.
Lets run and verify the logs.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.