全部单独配置服务日志 不集成elk

Blade 未结 1 347
linyx2001
linyx2001 剑童 2022-12-25 17:39

一、该问题的重现步骤是什么?

1. 不想使用elk  减少工作量  发现现在gateway模块不能输出日志到到指定文件夹  其他服务都是输出到target文件夹下

2. 看了论坛 说要把logback-test.xml  放到resource下    可以覆盖原来配置  现在一直报错    

3.


二、你期待的结果是什么?实际看到的又是什么?

我可以单独配置每个服务的日志  不使用elk

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

blade-cloud   3.0.1   在linux  

四、请提供详细的错误堆栈信息,这很重要。


java.lang.IllegalStateException: java.lang.IllegalStateException: Logback configuration error detected: 

ERROR in ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Could not create LoggerContextListener of type org.springblade.core.log.listener.LoggerStartupListener]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.springblade.core.log.listener.LoggerStartupListener

ERROR in ch.qos.logback.core.joran.conditional.IfAction - Could not find Janino library on the class path. Skipping conditional processing.

ERROR in ch.qos.logback.core.joran.conditional.IfAction - See also http://logback.qos.ch/codes.html#ifJanino

ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an appender named [INFO_APPENDER_IS_UNDEFINED]. Did you define it below instead of above in the configuration file?


五、若有更多详细信息,请在下面提供。image.png

1条回答
  • 需要引入这个类和相关依赖。

    ~9E[H{9VO]NF{VOV~5FKXO8.png

    0 讨论(0)
提交回复