티스토리 뷰

반응형

log4j level 설정 방법 및 level 별 설명


<logger name="xxx.xxx.xxx">

        <level value="ERROR"/>

        <appender-ref ref="dailyRollingFile"/>

 </logger>


위에서 아래로 갈수록 level이 낮아진다고 생각하면 됨.


ALL – The ALL has the lowest possible rank and is intended to turn on all logging.
> 모든 로깅.
TRACE – The TRACE Level designates finer-grained informational events than the DEBUG
> 세밀
DEBUG – The DEBUG Level designates fine-grained informational events that are most useful to debug an application.
> 디버깅.
INFO – The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.
> 강조 정보.
WARN – The WARN level designates potentially harmful situations.
> 경고.
ERROR – The ERROR level designates error events that might still allow the application to continue running.
> 오류.
FATAL – The FATAL level designates very severe error events that will presumably lead the application to abort.
> 심각한 오류.
OFF – The OFF has the highest possible rank and is intended to turn off logging.
> 로깅 해제.

반응형