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
Post a Comment