项目

一般

简介

应用在v10上部署不上日志也没有报错

由 彭 博 在 超过 3 年 之前添加

问题:

在金蝶管控台上看不到错误信息

[2021-07-28T16:39:33] [] [SEVERE] [] [] [tid: _ThreadID=57 _ThreadName=ApusicLogManager] [timeMillis: 1627461573224] [levelValue: 1000] [[

  SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.]]

 

[2021-07-28T16:39:33] [] [SEVERE] [] [] [tid: _ThreadID=57 _ThreadName=ApusicLogManager] [timeMillis: 1627461573341] [levelValue: 1000] [[

  SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]]]

 

[2021-07-28T16:39:33] [] [INFO] [] [] [tid: _ThreadID=57 _ThreadName=ApusicLogManager] [timeMillis: 1627461573609] [levelValue: 800] [[

  Registering WebSocket filter for url pattern /*]]

 

[2021-07-28T16:39:33] [] [INFO] [] [javax.enterprise.web] [tid: _ThreadID=57 _ThreadName=ApusicLogManager] [timeMillis: 1627461573769] [levelValue: 800] [[

  WebModule[/BioFpMatch] ServletContext.log():2 Spring WebApplicationInitializers detected on classpath]]

 

于是去查看应用的错误信息

 

2021-07-29 09:52:17.619[ApusicLogManager][INFO ] [u.j.logger][?] - 2021-07-29 09:52:17.510[ApusicLogManager][INFO ] [u.j.logger][?] - 2021-07-29 09:52:17.410[ApusicLogManager][INFO ] [u.j.logger][?] - 2021-07-29 09:52:17.316[ApusicLogManager][INFO ] [u.j.logger][?] - 2021-07-29 09:52:17.224[ApusicLogManager][INFO ] [u.j.logger][?] - 2021-07-29 09:52:17.132[ApusicLogManager][INFO ] [u.j.logger][?] - 2021-07-29 09:52:17.042[ApusicLogManager][INFO ] [u.j.logger][?] - 2021-07-29 09:52:16.937[ApusicLogManager][INFO ] [u.j.logger][?] - 2021-07-29 09:52:16.829

 

日志死循环

原因:

应用使用的了自己的日志框架,与v10的日志框架冲突

解决方案:

在v10管控台上jvm上面加一个参数-Dcom.apusic.log.swallowOutput=false