Our Sites
Categories
- Business (35)
- DelphiFeeds.com (88)
- General (43)
- Gurock Software (107)
- Programming (44)
- SmartInspect (124)
- Software Quality (6)
- TestRail (23)
- Virtualization (8)
- Websites (26)
Archives
User Pages Cloud
delphi unicode asp.net monitoring debug java debugging log4j logging trace delphi tracing asp.net exceptions errors debug .net debugging log4net log4n .net monitoring debug java debugging vb.net logging trace java tracing java exceptions errors delphi monitoring delphi debugging trace .net tracing delphi exceptions errors nlog asp.net logging tracing eurekalog




Using a custom Log4net appender with SmartInspect
A popular logging framework with .NET developers is log4net, a text-only logging library that has been ported to .NET from the well-known Java logging library log4j. Similar to how I already outlined in our recent log4j blog posting, we regularly get emails from users who are interested in switching from log4net to SmartInspect. They want to take advantage of SmartInspect’s rich logging capabilities, our Console (SmartInspect’s monitoring and analysis tool) and all the unique protocol options available in SmartInspect (such as log file encryption, the memory protocol, backlog queues etc).
Switching to a new logging library is not an easy task if you have to replace all existing logging calls with new ones. Luckily, you can extend log4net with custom appenders that allow you to route the log messages to a new destination, for example, to SmartInspect. We have developed such an appender (two, actually) and demonstrate how to use them in a new article:
Using a Custom Log4net Appender with SmartInspect
We hope this will make it a lot more attractive for .NET developers to port existing projects that make use of the classic log4net log framework to SmartInspect.