MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    关于logger多余信息的过滤

    开发交流
    3
    4
    118
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      diyigemt last edited by

      在使用mcl启动mirai核心的时候控制台基本只会打印V/Bot收到和发送的消息

      而在自己的项目中启动mirai核心 控制台会多打印一下额外信息 比如V/Net I/Net D/Net Send: Heartbeat.Alive

      如何把这些信息过滤掉?

      1 Reply Last reply Reply Quote 0
      • Nambers
        Nambers 摸鱼 last edited by Nambers

        我记得好像有个地方可以设置日志等级
        https://github.com/mamoe/mirai/issues/508
        或者在mcl的 config/console/logger.yml 中设置

        hundunzhidian created this issue in mamoe/mirai

        closed 如何在java代码里面更改logger的等级 #508

        1 Reply Last reply Reply Quote 0
        • Karlatemp
          Karlatemp last edited by

          BotConfiguration 中设置 Net logger

          1 Reply Last reply Reply Quote 0
          • D
            diyigemt last edited by

            解决了 谢谢

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact