에서 제대로 logback 설정 내 파일 시스템에서 파일에 logback의 외부 구성을 가지고 : -Dlogger.file=/path/to/my/file/logger.xml
:플레이 프레임 워크
<configuration>
....
<root level="OFF">
</root>
....
</configuration>
내가 JVM 인수를 사용하여 파일의 위치를 지정합니다.
그러나 응용 프로그램 테스트를 실행할 때 첫 번째 줄은 로거에서 출력됩니다.
17:42:17,211 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
17:42:17,212 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
17:42:17,212 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/Users/jakubryska/.ivy2/cache/com.typesafe.play/play_2.10/jars/play_2.10-2.2.1.jar!/logback.xml]
17:42:17,228 |-INFO in [email protected] - URL [jar:file:/Users/jakubryska/.ivy2/cache/com.typesafe.play/play_2.10/jars/play_2.10-2.2.1.jar!/logback.xml] is not of type file
17:42:17,383 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
17:42:17,384 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
17:42:17,392 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
17:42:17,412 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
17:42:17,467 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
분명히, 나는 좋지 않은 방식으로 뭔가를하고 있습니다. 나는 로거로부터 아무런 결과도 기대하지 않는다. 이게 뭐야?