关闭AKKA IO-TCP日志记录

关闭AKKA IO-TCP日志记录,tcp,io,akka,Tcp,Io,Akka,我想关闭以下生命周期的日志记录?事件,哪个配置指令控制此事件 DEBUG [akka://MyActorSystem/system/IO-TCP/selectors/$a/371] - started (akka.io.TcpOutgoingConnection@558309d8) DEBUG [akka://MyActorSystem/system/IO-TCP/selectors/$a/371] - now watched by Actor[akka://MyActorSystem/syst

我想关闭以下生命周期的日志记录?事件,哪个配置指令控制此事件

DEBUG [akka://MyActorSystem/system/IO-TCP/selectors/$a/371] - started (akka.io.TcpOutgoingConnection@558309d8)
DEBUG [akka://MyActorSystem/system/IO-TCP/selectors/$a/371] - now watched by Actor[akka://MyActorSystem/system/IO-TCP/selectors/$a#
DEBUG [akka://MyActorSystem/system/IO-TCP/selectors/$a/371] - Attemptingconnection to [localhost/127.0.0.1:12002]
DEBUG [akka://MyActorSystem/system/IO-TCP/selectors/$a/371] - Connection established to [localhost/127.0.0.1:12002]
DEBUG [akka://MyActorSystem/system/IO-TCP/selectors/$a/371] - stopped

您可以使用application.conf中的以下设置禁用生命周期日志消息启动、监视和停止:

如果您正在使用远程处理:

akka {
  remote {
    log-remote-lifecycle-events = off
  }
}
摘录中的TCP连接日志消息是在调试级别设置和硬编码的,与生命周期事件不同,不能禁用这些消息。要防止记录这些消息,请将全局日志记录级别设置为比调试更粗粒度的级别。这样做还可以防止记录生命周期事件,而不考虑上述设置。有关日志记录的更多信息,请参见官方网站

akka {
  remote {
    log-remote-lifecycle-events = off
  }
}