Revival of 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?

  1. Extension methods can be added to ILog and then I can use ILog.EnterMethod and ILog.LeaveMethod.
  2. 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.

© - Lex Li. All rights reserved.

Using the Chirpy theme for Jekyll.

Last updated on April 19, 2024