%F:%L
사용시 ?:? 로 발생할 수 있다.<param name=“locationInfo” value=“true”/>
를 추가해야 한다. - 부하 발생.<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" > <log4j:configuration> <appender name="stdout" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"/> </layout> </appender> <appender name="ASYNC" class="org.apache.log4j.AsyncAppender"> <param name="BufferSize" value="500"/> <param name="locationInfo" value="true"/> <appender-ref ref="stdout"/> </appender> <root> <priority value="error"></priority> <appender-ref ref="ASYNC"/> </root> </log4j:configuration>
additivity
속성을 false
로 지정해야 한다.