프로그램
[OPC DA] how to not display on console slf4j WARN message
naudhizb
2015. 12. 29. 14:30
반응형
--
14:25:20.125 [OPCSessionDestructor] WARN org.jinterop.dcom.core.JISession - prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: 0001d419-12b8-0000-ed55-74beaad7a61d session: -1414163465 , numInstancesfirsttime is 5
이 메세지는 slf4j의 로그에서 출력되는 메세지이다.
이 메세지를 출력하지 않기 위해서는 참조하고 있는 slf4j 패키지를 nop 버전으로 교체해 주어야한다.
http://www.slf4j.org/dist/ 이 사이트에 들어가 적절한 버전의 slf4j를 받은 뒤 압축 파일 안에 있는
slf4j-nop-1.6.4(사용하고 있는 버전에 따라 다르다.)와 slf4j-nop-1.6.4-souce를 프로젝트의 build path에 추가하고
기존 slf4j 패키지를 build path에서 제거한다.
Ref.
https://groups.google.com/forum/#!topic/openscada/0SkVNAohnwE
--
반응형