MiraiForum

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

    如何关闭日志?

    开发交流
    2
    2
    105
    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.
    • H
      hu1240050829 last edited by

      因为引用了springboot,不想同时有两种日志,请问如何关闭日志呢?我尝试了还是不行,以下是我的代码:
      MiraiLogger logger = bot.getLogger();
      MiraiLoggerWithSwitch withSwitch = new MiraiLoggerWithSwitch(logger,false);
      withSwitch.disable();
      这样仍然无法关闭

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

        不建议关闭日志除非不想获得任何技术支持

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