Menu

Is JaMon compatible with Log4j2?

2015-09-22
2015-09-24
  • Csaba Nemeth

    Csaba Nemeth - 2015-09-22

    Hi there,

    Is JaMon compatible with Log4j2? How can I use it with log4j2?

     
  • Steve Souza

    Steve Souza - 2015-09-24

    No, but with minimal effort it probably could be. What exactly are you trying to monitor? You could modify the following log4j implementation to work with log4j2 easily i would think. I could guide you through this and roll it back into jamon too for the benefit of others.

    The following appender that was created for log4j could be modified. The 'generalizer' capability wouldn't be required if you just wanted to count INFO, WARNING, ERROR etc and be able to view each log record in the jamon web app.

    https://sourceforge.net/p/jamonapi/jamonapi/ci/master/tree/jamon/src/main/java/com/jamonapi/log4j/JAMonAppender.java

    Let me know if you are interested in doing this.

    Steve

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.