代码之家  ›  专栏  ›  技术社区  ›  FelixHJ

关闭AKKA IO-TCP日志记录

  •  0
  • FelixHJ  · 技术社区  · 7 年前

    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
    
    1 回复  |  直到 7 年前
        1
  •  1
  •   Jeffrey Chung    7 年前

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

    akka {
      actor {
        debug {
          # disable DEBUG logging of actor lifecycle changes
          lifecycle = off
        }
      }
    }
    

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

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

    here here documentation .