运行 Apache velocity 模板时获取调试消息
Getting debug messages when running Apache velocity template
我是 运行 Apache velocity 模板引擎(最新 2 个)
我不断收到来自 SLF4J
的调试消息
这会阻碍用户查看重要消息,有没有办法抑制这些消息?
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/user1/Package/installer/lib/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/user1/Package/installer/lib/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
消息警告您 多个 SLF4J classes,
你有 2 个 slf4j jar slf4j-simple-1.7.5.jar
和 slf4j-simple-1.7.25.jar
,它们都有相同的 class (StaticLoggerBinder),
从依赖项中删除其中一个 jar,调试消息将会消失。
我是 运行 Apache velocity 模板引擎(最新 2 个)
我不断收到来自 SLF4J
的调试消息
这会阻碍用户查看重要消息,有没有办法抑制这些消息?
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/user1/Package/installer/lib/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/user1/Package/installer/lib/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
消息警告您 多个 SLF4J classes,
你有 2 个 slf4j jar slf4j-simple-1.7.5.jar
和 slf4j-simple-1.7.25.jar
,它们都有相同的 class (StaticLoggerBinder),
从依赖项中删除其中一个 jar,调试消息将会消失。