java - log4j - show logs both in file and console -
i have 2 appenders, 1 file , console. want eclipse console show both file , console logs, in same time file show own logs. how do that? here conf. <appender name="file" class="org.apache.log4j.dailyrollingfileappender"> <errorhandler class="org.jboss.logging.util.onlyonceerrorhandler"/> <param name="append" value="true"/> <param name="threshold" value="info"/> <param name="file" value="${jboss.server.log.dir}/file.log"/> <layout class="org.apache.log4j.patternlayout"> <param name="conversionpattern" value="%d %-5p %m%n"/> </layout> <appender name="console" class="org.apache.log4j.consoleappender"> <errorhandler class="org.jboss.logging.util.onlyonceerrorhandler"/> <param name="target" value="system.out"/> <param name="...