log4net is a .NET port of the very popular, and highly rated log4j (Java-based) logging engine. It’s not really a substitute for debugging, although it can be highly configured and can serve the purpose of debugging. It’s really a tracker for all the things that happen whilst your application is executing. You can use it to capture event details for users, etc, or to provide audit trails, so on and so forth. It writes logs to a file (wherever you specify). Here I am using log4net for write a log when start the flow of Biztalk Orchestration.You will be easy to create simple orchestration to test this sample. Here are the Main steps to be followed.
Add Visual Studio Solution File Add Biztalk Project to the solution Create Simple Biztalk Application with send Schema, receive Schema and a MAP in the Biztalk Solution Add C# Class Library for create log4 net classes Refer log4net library to the Sample.Utility Create Related Interfaces and Classes on the Sample.Utility Edit ‘BTSNTSvc.exe’ Biztalk Config file. Build Sample.Utility and reffer the library in to Biztalk Application Using expression Shape call the log4net Logger Deploy and Configure the Biztalk Application
This is not a very big task even if you are a new Biztalk person. But you need to have an understanding how biztalk receiving sending and processing the messages in the orchestration. If you are new to log4net its better if you can have an idea about log4 net using this Link in Code Project.” A Brief Introduction to the log4net logging library, using C# ” Please see the descriptive article on my blog