Hi all,
I am using log4j with a DailyRollingFileAppender. Everything works fine so far but there is one problem left....
I want to be able to let my application know how its logfile is named an where it can be found.
Therefor I would have to browse through the appenders and if I find an appender of class org.apache.log4j.DailyRollingFileAppender I want to read the parameter "file"... but I have no clue how to achieve this.
All I have is a static instance of Logger. But if I try to access the appenders with logger.getAllApenders the enumeration that is returned seems to be empty... needless to say that I don't know what to do with the enumeration even if it was not empty.
Any ideas about this?
Cheers
frag
real_firestorm@gmx.de
I am using log4j with a DailyRollingFileAppender. Everything works fine so far but there is one problem left....
I want to be able to let my application know how its logfile is named an where it can be found.
Therefor I would have to browse through the appenders and if I find an appender of class org.apache.log4j.DailyRollingFileAppender I want to read the parameter "file"... but I have no clue how to achieve this.
All I have is a static instance of Logger. But if I try to access the appenders with logger.getAllApenders the enumeration that is returned seems to be empty... needless to say that I don't know what to do with the enumeration even if it was not empty.
Any ideas about this?
Cheers
frag
real_firestorm@gmx.de