Revival of LoggingService Functionality
This post is about why I revived the LoggingService functionality.
A few years ago, I wrote a class for Code Beautifier Collection named LoggingService. At that time I decided to wrap over log4net.
However, I started to use log4net more directly in the following years, and LoggingService is no longer a convenient way. OK. Then how to make use of those old code again?
- Extension methods can be added to ILog and then I can use ILog.EnterMethod and ILog.LeaveMethod.
- In order to add necessary indentation to the log files, I have to hack the appender.
Well, this becomes something much easier to use.
© Lex Li. All rights reserved. The code included is licensed under CC BY 4.0 unless otherwise noted.
Advertisement