Custom Logger [message #159303] |
Tue, 09 May 2006 03:35 |
Eclipse User |
|
|
|
Hi,
we are using a custom Logger (based on log4j) in our Framework, of course I
want to set the logging properties only at one place for my whole project.
So it is a little bit circumstantial to wrap the log settings from our
Framework to the log settings of birt. It ends up in a code like
if (myLog.isErrorEnabled()) {
level = Level.SEVERE;
} else if (myLog.isWarnEnabled()) {
level = Level.WARNING;
// and so on
config.setLogConfig(logDir, level);
I am also unhappy to set the logDir directly, because in development-Mode
often the log-settings point to sysout and syserr.
It would be great, if there will be an availability to set
config.setLogger(myLogger) or similar.
Wolfgang
|
|
|
Powered by
FUDForum. Page generated in 0.02433 seconds