代码拉取完成,页面将自动刷新
Forest: 1.5.30
Backend: (okhttp或httpclient)
slf4j版本使用2.x版本后,无法输出日志
将slf4j-api版本升级至2.x,且排除1.7.x版本
Connected to the target VM, address: '127.0.0.1:59007', transport: 'socket'
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
SLF4J: Ignoring binding found at [jar:file:/C:/Users/admin/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.20.0/log4j-slf4j-impl-2.20.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.
Disconnected from the target VM, address: '127.0.0.1:59007', transport: 'socket'
只有日志抽象,没有日志实现层,与forest无关,如果是Spring Boot,直接引入spring-boot-starter-logging
或者spring-boot-starter-log4j2
,如果是普通项目,需要单独引入log4j2
或者logback
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论