watzds
V2EX  ›  问与答

大家 Java 日志怎么打的?

  •  
  •   watzds · Mar 5, 2019 · 1566 views
    This topic created in 2638 days ago, the information mentioned may be changed or developed.
    很多 getLogger 都是按 package class 来的,看不出打印到哪个文件了,还得去查配置文件
    还有同一个类里要打印到多个文件也不方便

    甚至这个 Google 的 flogger 只有一个 forEnclosingClass 获 取当前 class 的 logger。https://github.com/google/flogger

    不知大家是怎么处理的?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5566 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 03:48 · PVG 11:48 · LAX 20:48 · JFK 23:48
    ♥ Do have faith in what you're doing.