Logging settings changes? What a good idea! When it comes to logging, less is not more; less is, in fact, less - more is more.
We use log4j to log everything in sight, with a DailyRollingFileAppender to keep from taking up too much space. We do get some pretty hefty log files, though, so we use Tail for Windows to keep an eye on them in real-time, or Python (what else!) to trawl through them if we are looking for something in particular.
Via Joe Grossberg.
Posted to Software development by Simon Brunning at May 28, 2004 12:30 PMSurely the top tip is to log at appropriate levels, then you can adjust the amount you capture as and when required.
With the Python logging module, for instance, you can have different handlers listening for messages of different levels, so you can adjust what gets written to file at run time. As it's based on log4j I presume you can do the same in Java.
Posted by: Andy Todd on May 28, 2004 05:54 PMTail for Windows?
Could I persuade you to try out the latest version of log4j's Chainsaw?
It supports receivers now - including the new 'LogFilePatternReceiver', where you specify the file, the pattern in the text, and tell it whether or not to 'tail' the file, and Chainsaw will display the file contents.
Here's a link with a screen shot, Web Start link to try it out and more info: http://logging.apache.org/log4j/docs/chainsaw.html
If you have questions or suggestions, feel free to email me.
Take care,
Scott