Drools记录到配置级别以下

问题描述 投票:0回答:1

我似乎在登录和下流方面有些配置问题。

<configuration scan="true">

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <!-- encoders are assigned the type
             ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
        <encoder>
            <pattern>%-4relative [%thread] %-5level %logger{35} - %msg %n</pattern>
        </encoder>
    </appender>

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

    <logger name="org.drools" level="error"/>
    <logger name="org.optaplanner" level="info"/>
</configuration>

I don't want to see logs from drools yet I see several messages like these:
926  [main] INFO  o.k.a.i.utils.ServiceDiscoveryImpl - Adding Service org.drools.core.io.impl.ResourceFactoryServiceImpl
927  [main] INFO  o.k.a.i.utils.ServiceDiscoveryImpl - Adding Service org.drools.core.marshalling.impl.MarshallerProviderImpl
928  [main] INFO  o.k.a.i.utils.ServiceDiscoveryImpl - Adding Service org.drools.core.concurrent.ExecutorProviderImpl

(还有更多)

如果将我的根目录配置为error,则不会显示该消息。有什么想法可以解决吗?

java drools optaplanner
1个回答
0
投票

添加

<logger name="org.kie" level="error"/>
热门问题
推荐问题
最新问题