java - Set log4j output log file underneath my project Not eclipse -
i use eclipse ide develop project. log have been output myproject/logs/log.log expected, until did setting saw web site.
i went windows -> preferences -> java -> build path -> classpath variable add "log4j-1.2.16.jar".
since then, log file started showing under d:\eclipse\logs\ instead of d:\workspace\myproject\logs.
i have deleted classpath variable entry , restart eclipse, cannot have log file created under project anymore.
help!!! thanks.
it's best if explictly define path log should go. example if webapp deployed on tomcat can:
log4j.appender.yourlog.file=${catalina.home}/logs/my-application.log
Comments
Post a Comment