DEV Community

Daniel Jonathan
Daniel Jonathan

Posted on • Originally published at biztalkdj.blogspot.com on

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,

1

1

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.

1

Lets run and verify the logs.

1

Top comments (0)