Re: grabbing errors



To get log4j logging messages to your console, make sure you add a
reference to the ConsoleAppender in you log4j configuration file:

log4j.appender.ROOT=org.apache.log4j.ConsoleAppender

You must also put log4j method calls in your "catch" blocks, but I
assume you are doing that already....hope this helps.

.



Relevant Pages

  • log4j two levels at once
    ... Does Log4j offers setting up output for the same class/package - INFO to ... console and DEBUG to file? ...
    (comp.lang.java.programmer)
  • Re: logging for analysis
    ... Both can be reconfigured at deployment time to give greater or lesser detail, ... I am more familiar with log4j myself. ... The overhead of a logging call when the detail level isn't fine enough for it ... - keeping a reference to an object will keep it from being garbage collected. ...
    (comp.lang.java.programmer)
  • Re: logging for analysis
    ... Both can be reconfigured at deployment time to give greater or lesser detail, ... I am more familiar with log4j myself. ... Make sure when you design your logging strategy that you think about what operations will need when the program is deployed. ... Only orphaned objects go away - keeping a reference to an object will keep it from being garbage collected. ...
    (comp.lang.java.programmer)
  • Re: Axis 1.x: clearing up the log4j error message
    ... developers at work are still using 1.x). ... I have worked through most of the basic samples ... But I get a recurring log4j error, which is not fatal but I would ... You need to provide a log4j configuration file. ...
    (comp.lang.java.programmer)
  • referencing this in a JSP page
    ... Can you reference "this" in a JSP page. ... I am using log4j to log errors but ...
    (comp.lang.java.programmer)