akka 发生异常:记录器log 1-Slf 4jLogger未响应LoggerInitialized,而是发送[超时]]]

c8ib6hqw  于 2022-11-06  发布在  其他
关注(0)|答案(1)|浏览(138)
[error] akka.ConfigurationException: Could not start logger due to 
[akka.ConfigurationException: Logger specified in config can't be loaded 
[akka.event.slf4j.Slf4jLogger] due to 
[akka.event.Logging$LoggerInitializationException: Logger log1-Slf4jLogger did 
not respond with LoggerInitialized, sent instead [TIMEOUT]]]

我已经尝试包括记录器启动超时值,以及它似乎不工作,同样的问题得到反映。

akka {
          loggers = ["akka.event.slf4j.Slf4jLogger"]
          loglevel = "INFO"
          logger-startup-timeout = 30s
          http {
            host-connection-pool {
              max-connections = 16
              max-open-requests = 128
            }

            server {
              parsing.max-header-value-length = 512k
            }
          }
        }

有人能帮我解决这个问题吗

sqserrrh

sqserrrh1#

我认为还需要设置logging-filter参数:

akka {
  loggers = ["akka.event.slf4j.Slf4jLogger"]
  loglevel = "INFO"
  logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
}

如果这不能解决您的问题,请(重新)仔细阅读the official documentation on how to perform Classic Logging,因为您可能有一些依赖性问题。

相关问题