0

我在 logback.xml 中为我的所有类添加了单独的记录器,我正在使用它来控制我的记录器。现在我从班级使用的罐子里得到一些日志。我如何关闭或控制这些记录器的级别。有什么建议么 ???我无法知道 jar 的确切位置,因为在日志消息中它看起来好像来自类本身而不是来自 JAR。请帮帮我

4

1 回答 1

0

Suppose You are getting some DEBUG level messages from the "com.eclipse" jar and you want to turn it off. You can do it like this in your logback.xml file :

 <logger name="org.eclipse" level="INFO" />
于 2012-09-16T07:23:53.360 回答