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 Summary
Modifier and TypeMethodDescriptionvoidvoidvoidbooleanChecks if the next log should be sampled.voidvoid
-
Method Details
-
trace
-
debug
-
info
-
warn
-
error
-
shouldLog
boolean shouldLog()Checks if the next log should be sampled. 检查下一条日志是否应该被采样。- Returns:
- true if should log - 如果应该记录返回 true
-