SmartLog
Smart logfile generator for background services.
...Log files can grow quite large pretty quickly when you log too much information, but you need that information to track down the problem. This logfile generator solves the problem by deleting successful iterations of a loop. This allows you to have highly detailed log files, which, at the same time, remains at a manageable size. When your service eventually break, you have all the relevant information - and only the relevant information - available to pinpoint the problem. Logging can be switched on and off with a single property. Simply add the logging code to your methods as in the example method, and your bugs will have no place to hide.