Git Product home page Git Product logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
accepted because javamelody must not throw a classnotfoundexception.

Note that javamelody in a webapp is not supposed to depend on Log4J.
javamelody add a log4jappender to take warn logs of the application only if 
log4j is
present in the application.

Original comment by [email protected] on 4 Mar 2010 at 10:05

  • Changed state: Accepted

from javamelody.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
The issue with classnotfoundexception comes from the fact that log4j-over-slf4j 
is
only a partial implementation of Log4J. So the availability of
org.apache.log4j.Logger is not sufficient to know if Log4J is available, which 
is
unintuitive to me.
Ref: http://www.slf4j.org/legacy.html#log4j-over-slf4j

The classnotfoundexception should be fixed with a test for the availability of
org.apache.log4j.AppenderSkeleton after testing the availability of
org.apache.log4.Logger. So you will be able to use log4j-over-slf4j. To monitor
logback warn logs, I have added the use of logback appender in the TODO list for
another day.

This fix is available in trunk and ready for next release (1.13)

Original comment by [email protected] on 5 Mar 2010 at 3:21

  • Changed state: Fixed

from javamelody.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
Thanks, built a snapshot and tested it.

Code at
$ svn checkout
https://cia.svn.sourceforge.net/svnroot/cia/trunk/citizen-intelligence-agency
citizen-intelligence-agency

But already miss the log output in javamelody, will see if I have time to 
create a
patch someday.

Original comment by [email protected] on 5 Mar 2010 at 7:33

from javamelody.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.