Friday, September 28, 2007

log4j

It's not like I am new to this logging API. I am familiar with Appenders, Loggers, Layouts. I have used in a basic manner so when there is a need to dynamically ( on-the-fly) change logging settings.
The logging level is the easiest property to change. I am messing around with how to change the retention period ( maxBackupIndex ) and the MaxFileSize. I don't think it should be that hard - get an instance of the Appender using the logger. OR change the DOM tree - ewow, I don't wanna do that. If I had an external file, I could use ConfigureAndWatch, but I really want this to happen via a GUI Button.
Ideas, anyone?

1 comment:

Anonymous said...

I am working on Log4J for the first time this afternoon and I don't like it that much.