PDA

View Full Version : Log4J and JMX notifications


dominikroblek
Mar 2nd, 2006, 07:08 PM
Hi all,

Is it possible to handle Log4j messages as JMX notifications? For example, I would like to receive Log4j messages at WARN, ERROR and FATAL level as JMX notifications. Maybe an appropriate log4j appender could do the job?

Cheers,
Dominik

Costin Leau
Mar 3rd, 2006, 05:15 AM
Yes, you need some sort of jmx appender. You should see the log4j site and mailing list - I think there is/was some support in there but I never used it. However you can write your own appender - is not that hard.