Interface SampledLog.SampledLogger

Enclosing class:
SampledLog

public static interface SampledLog.SampledLogger
Sampled Logger Interface. 采样日志记录器接口。
Since:
JDK 25, opencode-base-log V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Method Details

    • trace

      void trace(String format, Object... args)
    • debug

      void debug(String format, Object... args)
    • info

      void info(String format, Object... args)
    • warn

      void warn(String format, Object... args)
    • error

      void error(String format, Object... args)
    • shouldLog

      boolean shouldLog()
      Checks if the next log should be sampled. 检查下一条日志是否应该被采样。
      Returns:
      true if should log - 如果应该记录返回 true