java - Where did the Log4j Log Output Go? -


i running java class directly has main(), eclipse.

no web servers running. main() of class run. in main() have statement,

import org.apache.log4j.logger;  //...  private static final logger logger = logger.getlogger(myclass.class);  public static void main(string[] args){ try {    //... } catch (exception e) { logger.error(e); } 

nothing shown in eclipse console when error encountered. error log written, somewhere else. written to?

it depends on logging configuration, check log4j.properties or log4j.xml(which ever in case).


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

html - href attribute breaking an element -