The applications I work on do a hell of a lot of things and I find it quite difficult to parse through the logs when I'm going over them. Especially when I'm debugging/testing a particular bit of code. and have to wade through pages and pages of irrelevant log data.
Is there a sensible way to manage logging (Primarilly in Java, But also interested in .Net) which would allow me to commit only a sub set of things while I'm working on a particular piece of functionality but allow me to log everything at other times.
I've considdered Labling the log statements I'm interested in and grepping for them, or wrapping the logger library (log4j/log4net) in a class which allows me to specify a context that I'm interested in, and only commit that.
Is there a standard way to do this?
For Example at the moment I'm not interested in the output of several scheduled tasks that run once a second, and I'm not interested in the output of the two layers that surround my middle tier classes. but I am interested in it's output.