-
2020.05.28 오늘의 일지Dev/개발일지 2020. 5. 28. 19:13
Log4j2 Logger의 출력 로그 중 특정 클래스의 level을 따로 설정했다.
org.quartz.core.QuartzSchedulerThread에서 주기적으로(몇 초 간격으로) 다음 로그와 같이
12345678910111213141516171819202122232425262728293031323317:14:07.057 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:14:35.795 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:15:04.196 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:15:28.237 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:15:55.097 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:16:21.375 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:16:50.319 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:17:16.409 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:17:46.080 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:18:12.104 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:18:41.776 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:19:05.208 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:19:34.151 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:20:03.805 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:20:28.931 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:20:52.957 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:21:17.230 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:21:42.875 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:22:10.570 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:22:40.422 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:23:06.801 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:23:31.715 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:24:01.292 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:24:26.473 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:24:51.526 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:25:20.842 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:25:50.620 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:26:17.043 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:26:46.912 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:27:14.146 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:27:40.468 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:28:08.417 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers17:28:35.735 [QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggerscs 현재 수행되고 있는 Job이 있건 없건 계속 배치의 상태를 출력하고 있길래
Logger를 추가해 저 Debug 코드를 없앴다.
1234<Logger name="org.quartz.core.QuartzSchedulerThread" level="ERROR" additivity="false"><appender-ref ref="console" /><appender-ref ref="file" /></Logger>cs DEBUG -> ERROR로 level만 변경했기 때문에 오류가 생겼을 경우의 로그는 정상 출력되고,
DEBUG 로그로 인해 가독성이 떨어지는 부분을 최소화해 다른 로그들을 보기 용이해졌다.
'Dev > 개발일지' 카테고리의 다른 글
2020.06.02 오늘의 일지 (0) 2020.06.02 2020.05.08 오늘의 일지 (0) 2020.06.01 2020.05.07 오늘의 일지 (0) 2020.06.01 2020.05.27 오늘의 일지 (0) 2020.05.28 2020.05.25 오늘의 일지 (0) 2020.05.25