환경 : eclipse + spring + mybatis
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss}] %-5p: %c - %m%n" />
</layout>
</appender>
[%d{yyyy-MM-dd HH:mm:ss}] 추가
'Framework' 카테고리의 다른 글
[Spring + Mybatis] java.sql.SQLException: 부적합한 열 유형: 1111 (0) | 2020.04.10 |
---|---|
[Spring Boot] Spring boot tomcat Port 변경 (0) | 2020.04.06 |
[Eclipse] Exception sending context destroyed event to listener instance of class 오류 (0) | 2018.11.09 |
[Spring+Mybatis+Log4j] 로그 출력 (0) | 2018.10.12 |
[log4j] The content of element type "log4j:configuration" must match ... 오류 (0) | 2017.02.15 |