watzds
V2EX  ›  问与答

大家 Java 日志怎么打的?

  •  
  •   watzds · Mar 5, 2019 · 1632 views
    This topic created in 2703 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   ·   4304 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:10 · PVG 12:10 · LAX 21:10 · JFK 00:10
    ♥ Do have faith in what you're doing.