2014-09-18 1 views
0

// 억제 나는이 파일을 사용할 필요가 카우치베이스 주식회사 메시지 (diasble) log4j를 어떻게 여기억제의 log4j는

<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"> 
    <resetJUL>true</resetJUL> 
</contextListener> 

<!-- To enable JMX Management --> 
<jmxConfigurator/> 

<appender name="console" class="ch.qos.logback.core.ConsoleAppender"> 
    <encoder> 
     <pattern>%-5level %logger{0} - %msg%n</pattern> 
    </encoder> 
</appender> 

<!-- <logger name="" level="INFO"/> --> 

<root level="info"> 
    <appender-ref ref="console"/> 
</root> 

답변

0

아니고 log4j에 그것을 할 수 있습니다. 그것의 Logback. 당신은 전원을 켤 수 있습니다

<root level="OFF"> 
    <appender-ref ref="console"/> 
</root> 

또는 레벨

<root level="ERROR"> 
    <appender-ref ref="console"/> 
</root> 

아니면 완전히 콘솔을 제거해야하는 경우 단지 Logback documentation

를 참조 펜더

<root level="ERROR"> 
<!-- COMMENT OR DELETE THIS LINE <appender-ref ref="console"/> --> 
</root> 

콘솔에 대한 참조를 제거 에러로 설정

+0

작동하지 않습니다 콘솔에서 제거해야합니다 15 : 16 : 57.129 [Memca보다 Memcached IO chedConnection to mpdbhost/10.0.0.8 : 11210}] DEBUG c.c.client.CouchbaseConnection - 대기열을 처리합니다. 15 : 16 : 57.130 [Memcached IO to MemcachedConnection to mpdbhost/10.0.0.8 : 11210}] DEBUG c.c.cientbase 연결 - – user3865046

+0

답변을 업데이트 할 예정입니다. 콘솔을 완전히 제거한 후 로그 파일로 보내주십시오. – user1697575

관련 문제