Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ACCEPT - Enum constant in enum class cloud.opencode.base.log.filter.FilterAction
-
Accept the log event unconditionally.
- action() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns the value of the
actionrecord component. - adapterNotFound(String) - Static method in exception class cloud.opencode.base.log.exception.OpenLogException
-
Creates an adapter not found exception.
- add(Marker) - Method in interface cloud.opencode.base.log.marker.Marker
-
Adds a reference to another marker.
- addFilter(LogFilter) - Method in class cloud.opencode.base.log.filter.LogFilterChain
-
Adds a filter to this chain, sorted by order.
- ADDRESS - Enum constant in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
Address masking - 地址脱敏
- and(ScopedValue, String) - Method in class cloud.opencode.base.log.enhance.ScopedLogContext.Carrier
-
Adds another binding 添加另一个绑定
- AnsiColor - Enum Class in cloud.opencode.base.log.spi
-
ANSI Color Code Enumeration - Defines Terminal Color Escape Sequences ANSI 颜色代码枚举 - 定义终端颜色转义序列
- apply(LogContext.ContextSnapshot) - Static method in class cloud.opencode.base.log.context.LogContext
-
Applies a context snapshot.
- apply(LogEvent) - Method in class cloud.opencode.base.log.filter.LogFilterChain
-
Applies all filters in order to the given log event.
- AsyncLogger - Class in cloud.opencode.base.log.async
-
Asynchronous Logger - Offloads log output to a virtual thread via a bounded queue 异步日志记录器 - 通过有界队列将日志输出卸载到虚拟线程
- atMostEvery(Duration) - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Returns a logger that logs at most once per specified duration 返回每个指定时间段最多记录一次的日志器
- AUDIT - Static variable in class cloud.opencode.base.log.marker.Markers
-
Audit trail events - 审计跟踪事件
- AuditEvent - Record Class in cloud.opencode.base.log.audit
-
Audit Event - Immutable Audit Log Entry 审计事件 - 不可变的审计日志条目
- AuditEvent(String, Instant, String, String, String, String, String, String, String, Map) - Constructor for record class cloud.opencode.base.log.audit.AuditEvent
-
Canonical constructor with validation.
- AuditEvent.Builder - Class in cloud.opencode.base.log.audit
-
Builder for AuditEvent.
- Audit Event Fields | 审计事件字段 - Section in package cloud.opencode.base.log.audit
- AuditLog - Class in cloud.opencode.base.log.audit
-
AuditLog - Audit Logging Utility AuditLog - 审计日志工具
- AuditLog.LoggingBuilder - Class in cloud.opencode.base.log.audit
-
Builder that automatically logs when build() is called.
- AuditLogger - Interface in cloud.opencode.base.log.audit
-
Audit Logger Interface - Audit Event Recording 审计记录器接口 - 审计事件记录
B
- BANK_CARD - Enum constant in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
Bank card masking: ************1234 - 银行卡脱敏
- BLACK - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Black foreground - 黑色前景
- BLUE - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Blue foreground - 蓝色前景
- BOLD - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bold style - 粗体样式
- BOLD_GREEN - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bold green - 粗体绿色
- BOLD_RED - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bold red - 粗体红色
- BOLD_YELLOW - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bold yellow - 粗体黄色
- BRIGHT_BLACK - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bright black (gray) foreground - 亮黑色(灰色)前景
- BRIGHT_BLUE - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bright blue foreground - 亮蓝色前景
- BRIGHT_CYAN - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bright cyan foreground - 亮青色前景
- BRIGHT_GREEN - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bright green foreground - 亮绿色前景
- BRIGHT_MAGENTA - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bright magenta foreground - 亮洋红色前景
- BRIGHT_RED - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bright red foreground - 亮红色前景
- BRIGHT_WHITE - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bright white foreground - 亮白色前景
- BRIGHT_YELLOW - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Bright yellow foreground - 亮黄色前景
- build() - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Builds the audit event.
- build() - Method in class cloud.opencode.base.log.audit.AuditLog.LoggingBuilder
-
Builds and logs the audit event.
- build() - Method in class cloud.opencode.base.log.LogEvent.Builder
-
Builds the log event.
- build() - Method in class cloud.opencode.base.log.perf.SlowOperationConfig.Builder
-
Builds the configuration.
- builder() - Static method in class cloud.opencode.base.log.perf.SlowOperationConfig
-
Creates a new builder.
- builder(LogLevel, String) - Static method in record class cloud.opencode.base.log.LogEvent
-
Creates a new builder with the required level and message.
- builder(String) - Static method in record class cloud.opencode.base.log.audit.AuditEvent
-
Creates a builder for the specified action.
- Builder Pattern | 构建器模式 - Section in package cloud.opencode.base.log.audit
- BUSINESS - Static variable in class cloud.opencode.base.log.marker.Markers
-
Business logic events - 业务逻辑事件
C
- call(String, String, Callable) - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Calls a task with trace ID and user ID 使用追踪 ID 和用户 ID 调用任务
- call(Callable) - Method in class cloud.opencode.base.log.enhance.ScopedLogContext.Carrier
-
Calls a task in this context 在此上下文中调用任务
- callerInfo() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns the value of the
callerInforecord component. - callerInfo(CallerInfo) - Method in class cloud.opencode.base.log.LogEvent.Builder
-
Sets the caller info.
- CallerInfo - Record Class in cloud.opencode.base.log
-
Caller Information Record - Captures Stack Frame Location 调用者信息记录 - 捕获堆栈帧位置
- CallerInfo(String, String, String, int) - Constructor for record class cloud.opencode.base.log.CallerInfo
-
Compact constructor that validates non-null parameters.
- callWith(String, String, Supplier) - Static method in class cloud.opencode.base.log.context.MDC
-
Executes a task with a temporary MDC value and returns the result.
- callWith(Supplier) - Method in class cloud.opencode.base.log.context.LogContext.ContextSnapshot
-
Executes a task with this context and returns the result.
- callWithContext(String, String, Callable) - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Executes a task with specific context values and returns result 使用特定上下文值执行任务并返回结果
- capture() - Static method in record class cloud.opencode.base.log.CallerInfo
-
Captures the caller location by walking the stack and skipping internal log frames.
- capture(int) - Static method in record class cloud.opencode.base.log.CallerInfo
-
Captures the caller location with additional frame skipping.
- className() - Method in record class cloud.opencode.base.log.CallerInfo
-
Returns the value of the
classNamerecord component. - clear() - Static method in class cloud.opencode.base.log.context.LogContext
-
Clears all context.
- clear() - Static method in class cloud.opencode.base.log.context.MDC
-
Clears all entries from the MDC.
- clear() - Static method in class cloud.opencode.base.log.context.NDC
-
Clears the NDC stack.
- clear() - Method in class cloud.opencode.base.log.filter.LogFilterChain
-
Clears all filters from this chain.
- clear() - Method in interface cloud.opencode.base.log.spi.MDCAdapter
-
Clears all entries from the MDC.
- clear() - Method in interface cloud.opencode.base.log.spi.NDCAdapter
-
Clears the NDC stack.
- clearCache() - Method in class cloud.opencode.base.log.filter.ThrottleFilter
-
Clears the throttle cache.
- clearDeduplicationTracking() - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Clears the deduplication tracking (useful for testing) 清除去重追踪(用于测试)
- clearOnceTracking() - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Clears the once-only log tracking (useful for testing) 清除仅一次日志追踪(用于测试)
- clearRateLimitTracking() - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Clears the rate limit tracking (useful for testing) 清除限速追踪(用于测试)
- clearRateLimitTracking() - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Clears the rate limit tracking (useful for testing) 清除限速追踪(用于测试)
- clearRules() - Static method in class cloud.opencode.base.log.enhance.LogMasking
-
Clears all masking rules.
- close() - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Closes this async logger, equivalent to
AsyncLogger.shutdown(). - close() - Method in class cloud.opencode.base.log.context.MDC.MDCScope
- close() - Method in class cloud.opencode.base.log.context.NDC.NDCScope
- close() - Method in class cloud.opencode.base.log.perf.StopWatch
- cloud.opencode.base.log - module cloud.opencode.base.log
-
OpenCode Base Log Module OpenCode 基础日志模块
- cloud.opencode.base.log - package cloud.opencode.base.log
-
OpenCode Base Log - Lightweight Logging Facade OpenCode 基础日志 - 轻量级日志门面
- cloud.opencode.base.log.async - package cloud.opencode.base.log.async
-
Asynchronous Logging Support 异步日志支持
- cloud.opencode.base.log.audit - package cloud.opencode.base.log.audit
-
Audit Logging - Compliance and Security Event Recording 审计日志 - 合规和安全事件记录
- cloud.opencode.base.log.context - package cloud.opencode.base.log.context
-
Log Context - MDC and NDC Context Management 日志上下文 - MDC 和 NDC 上下文管理
- cloud.opencode.base.log.enhance - package cloud.opencode.base.log.enhance
-
Enhanced Logging - Advanced Logging Features 增强日志 - 高级日志功能
- cloud.opencode.base.log.exception - package cloud.opencode.base.log.exception
-
Log Exceptions - Exception Classes for Log Module 日志异常 - 日志模块的异常类
- cloud.opencode.base.log.filter - package cloud.opencode.base.log.filter
-
Log Filter Package - Provides Extensible Log Event Filtering 日志过滤器包 - 提供可扩展的日志事件过滤
- cloud.opencode.base.log.level - package cloud.opencode.base.log.level
-
Dynamic Log Level Management 动态日志级别管理
- cloud.opencode.base.log.marker - package cloud.opencode.base.log.marker
-
Log Markers - Log Event Categorization 日志标记 - 日志事件分类
- cloud.opencode.base.log.perf - package cloud.opencode.base.log.perf
-
Performance Logging - Timing and Slow Operation Detection 性能日志 - 计时和慢操作检测
- cloud.opencode.base.log.spi - package cloud.opencode.base.log.spi
-
SPI (Service Provider Interface) - Pluggable Logging Providers SPI(服务提供者接口) - 可插拔日志提供者
- ConditionalLog - Class in cloud.opencode.base.log.enhance
-
Conditional Logging - Environment and Rate-based Logging 条件日志 - 基于环境和速率的日志
- ConditionalLog.ConditionalLogger - Class in cloud.opencode.base.log.enhance
-
Logger that only logs when a condition is true 仅在条件为真时记录日志的日志器
- ConditionalLog.OnceLogger - Class in cloud.opencode.base.log.enhance
-
Logger that logs only once per call site 每个调用点只记录一次的日志器
- ConditionalLog.RateLimitedLogger - Class in cloud.opencode.base.log.enhance
-
Logger that logs at most once per specified duration 每个指定时间段最多记录一次的日志器
- CONFIDENTIAL - Static variable in class cloud.opencode.base.log.marker.Markers
-
Confidential marker - 机密标记
- ConsoleFormatter - Class in cloud.opencode.base.log.spi
-
Console Log Formatter with Optional ANSI Color Support 控制台日志格式化器(可选 ANSI 颜色支持)
- ConsoleFormatter() - Constructor for class cloud.opencode.base.log.spi.ConsoleFormatter
-
Creates a formatter with auto-detected ANSI color support.
- ConsoleFormatter(boolean) - Constructor for class cloud.opencode.base.log.spi.ConsoleFormatter
-
Creates a formatter with explicit color control.
- contains(Marker) - Method in interface cloud.opencode.base.log.marker.Marker
-
Checks if this marker contains the specified marker.
- contains(String) - Method in interface cloud.opencode.base.log.marker.Marker
-
Checks if this marker contains a marker with the specified name.
- containsExceptionType(Throwable, Class) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Checks if an exception contains a specific exception type in its chain 检查异常链中是否包含特定异常类型
- ContextSnapshot(Map) - Constructor for class cloud.opencode.base.log.context.LogContext.ContextSnapshot
-
Creates a new context snapshot.
- convertMarker(Marker) - Method in interface cloud.opencode.base.log.spi.LogAdapter
-
Converts an OpenLog marker to the framework-specific marker.
- create(String) - Static method in class cloud.opencode.base.log.perf.StopWatch
-
Creates a StopWatch without starting it.
- CUSTOM - Enum constant in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
Custom masking - requires pattern rule - 自定义脱敏
- Custom Audit Logger | 自定义审计记录器 - Section in package cloud.opencode.base.log.audit
- CYAN - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Cyan foreground - 青色前景
D
- DATABASE - Static variable in class cloud.opencode.base.log.marker.Markers
-
Database operations - 数据库操作
- Data Masking | 数据脱敏 - Section in package cloud.opencode.base.log.enhance
- debug() - Static method in class cloud.opencode.base.log.enhance.StructuredLog
-
Creates a DEBUG level structured log builder.
- debug(Marker, String) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at DEBUG level with a marker.
- debug(Marker, String) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at DEBUG level with a marker.
- debug(Marker, String, Object...) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at DEBUG level with a marker and parameters.
- debug(Marker, String, Object...) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at DEBUG level with a marker and parameters.
- debug(String) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at DEBUG level.
- debug(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- debug(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- debug(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- debug(String) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at DEBUG level.
- debug(String) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at DEBUG level.
- debug(String, Object...) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at DEBUG level with parameters.
- debug(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- debug(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- debug(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- debug(String, Object...) - Method in interface cloud.opencode.base.log.enhance.SampledLog.SampledLogger
- debug(String, Object...) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at DEBUG level with parameters.
- debug(String, Object...) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at DEBUG level with parameters.
- debug(String, Throwable) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at DEBUG level with an exception.
- debug(String, Throwable) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at DEBUG level with an exception.
- debug(Supplier) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at DEBUG level using lazy evaluation.
- debug(Supplier) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at DEBUG level using lazy evaluation.
- debug(Supplier) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at DEBUG level using lazy evaluation.
- DEBUG - Enum constant in enum class cloud.opencode.base.log.LogLevel
-
DEBUG level - Debugging information.
- debugAndCount(String, String, Object...) - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Logs at DEBUG level and increments counter 以 DEBUG 级别记录日志并增加计数器
- debugAndTime(String, String, Callable) - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Logs at DEBUG level with timing and records duration metric 以 DEBUG 级别带计时记录日志并记录耗时指标
- debugCount() - Method in record class cloud.opencode.base.log.enhance.LogMetrics.LogStats
-
Returns the value of the
debugCountrecord component. - DEFAULT - Static variable in class cloud.opencode.base.log.perf.SlowOperationConfig
-
Default config instance
- DEFAULT_LOG_LEVEL - Static variable in class cloud.opencode.base.log.perf.SlowOperationConfig
-
Default log level: WARN
- DEFAULT_THRESHOLD - Static variable in class cloud.opencode.base.log.perf.SlowOperationConfig
-
Default threshold: 1 second
- DefaultLogProvider - Class in cloud.opencode.base.log.spi
-
Default Log Provider - Console-based Fallback Provider 默认日志提供者 - 基于控制台的回退提供者
- DefaultLogProvider() - Constructor for class cloud.opencode.base.log.spi.DefaultLogProvider
- DENY - Enum constant in enum class cloud.opencode.base.log.filter.FilterAction
-
Deny the log event unconditionally.
- detachMarker(String) - Static method in class cloud.opencode.base.log.marker.Markers
-
Removes a marker from the registry.
- detail(String, Object) - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Adds a detail.
- detail(String, Object) - Method in class cloud.opencode.base.log.audit.AuditLog.LoggingBuilder
- details() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns the value of the
detailsrecord component. - details(Map) - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Adds multiple details.
- details(Map) - Method in class cloud.opencode.base.log.audit.AuditLog.LoggingBuilder
- devOnly() - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Returns a logger that only logs in development environment 返回仅在开发环境记录日志的日志器
- disabled() - Method in class cloud.opencode.base.log.perf.SlowOperationConfig.Builder
-
Disables slow operation detection.
- DynamicLevelManager - Class in cloud.opencode.base.log.level
-
Dynamic Level Manager - Runtime log level override management 动态级别管理器 - 运行时日志级别覆盖管理
E
- EMAIL - Enum constant in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
Email masking: u***@example.com - 邮箱脱敏
- enabled() - Method in class cloud.opencode.base.log.perf.SlowOperationConfig.Builder
-
Enables slow operation detection.
- ENTRY_EXIT - Static variable in class cloud.opencode.base.log.marker.Markers
-
Entry/Exit marker - 入口/出口标记
- equals(Object) - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.log.CallerInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class cloud.opencode.base.log.context.LogContext.ContextSnapshot
- equals(Object) - Method in record class cloud.opencode.base.log.enhance.LogMetrics.LogStats
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.log.LogEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in interface cloud.opencode.base.log.marker.Marker
-
Checks if this marker is equal to the specified marker.
- error() - Static method in class cloud.opencode.base.log.enhance.StructuredLog
-
Creates an ERROR level structured log builder.
- error(Marker, String) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at ERROR level with a marker.
- error(Marker, String) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at ERROR level with a marker.
- error(Marker, String, Object...) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at ERROR level with a marker and parameters.
- error(Marker, String, Object...) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at ERROR level with a marker and parameters.
- error(Marker, String, Throwable) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at ERROR level with a marker and exception.
- error(Marker, String, Throwable) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at ERROR level with a marker and exception.
- error(Marker, String, Throwable) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at ERROR level with a marker and exception.
- error(String) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at ERROR level.
- error(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- error(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- error(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- error(String) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at ERROR level.
- error(String) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at ERROR level.
- error(String, Object...) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at ERROR level with parameters.
- error(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- error(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- error(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- error(String, Object...) - Method in interface cloud.opencode.base.log.enhance.SampledLog.SampledLogger
- error(String, Object...) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at ERROR level with parameters.
- error(String, Object...) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at ERROR level with parameters.
- error(String, Throwable) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at ERROR level with an exception.
- error(String, Throwable) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- error(String, Throwable) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- error(String, Throwable) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- error(String, Throwable) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Logs an error with root cause analysis 带根因分析记录错误
- error(String, Throwable) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at ERROR level with an exception.
- error(String, Throwable) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at ERROR level with an exception.
- error(Throwable) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs an exception at ERROR level.
- error(Throwable) - Method in interface cloud.opencode.base.log.Logger
-
Logs an exception at ERROR level.
- error(Throwable) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs an exception at ERROR level.
- error(Supplier) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at ERROR level using lazy evaluation.
- error(Supplier) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at ERROR level using lazy evaluation.
- error(Supplier, Throwable) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at ERROR level using lazy evaluation with exception.
- error(Supplier, Throwable) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at ERROR level using lazy evaluation with exception.
- error(Supplier, Throwable) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at ERROR level using lazy evaluation with exception.
- ERROR - Enum constant in enum class cloud.opencode.base.log.LogLevel
-
ERROR level - Error conditions.
- errorAndCount(String, String, Object...) - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Logs at ERROR level and increments counter 以 ERROR 级别记录日志并增加计数器
- errorAndCount(String, String, Throwable) - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Logs at ERROR level with exception and increments counter 以 ERROR 级别带异常记录日志并增加计数器
- errorCount() - Method in record class cloud.opencode.base.log.enhance.LogMetrics.LogStats
-
Returns the value of the
errorCountrecord component. - errorOnce(String, Throwable) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Logs an error only once per unique exception signature 每个唯一异常签名仅记录一次错误
- errorRateLimited(String, Throwable, Duration) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Logs an error with rate limiting 带限速记录错误
- event(String) - Static method in class cloud.opencode.base.log.audit.AuditLog
-
Creates an audit event builder.
- eventId() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns the value of the
eventIdrecord component. - eventId(String) - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Sets the event ID.
- exception(Throwable) - Method in class cloud.opencode.base.log.enhance.StructuredLog.Builder
-
Sets the exception.
- Exception Hierarchy | 异常层次 - Section in package cloud.opencode.base.log.exception
- ExceptionLog - Class in cloud.opencode.base.log.enhance
-
Exception Logging Enhancement - Smart Exception Logging 异常日志增强 - 智能异常日志
- exists(String) - Static method in class cloud.opencode.base.log.marker.Markers
-
Checks if a marker with the specified name exists.
F
- Factory Methods | 工厂方法 - Section in package cloud.opencode.base.log.exception
- failure() - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Sets the result as failure.
- failure() - Method in class cloud.opencode.base.log.audit.AuditLog.LoggingBuilder
- field(String, Object) - Method in class cloud.opencode.base.log.enhance.StructuredLog.Builder
-
Adds a field.
- fields(Map) - Method in class cloud.opencode.base.log.enhance.StructuredLog.Builder
-
Adds multiple fields.
- fileName() - Method in record class cloud.opencode.base.log.CallerInfo
-
Returns the value of the
fileNamerecord component. - filter(LogEvent) - Method in class cloud.opencode.base.log.filter.LevelFilter
-
Filters the event based on its level.
- filter(LogEvent) - Method in interface cloud.opencode.base.log.filter.LogFilter
-
Evaluates the given log event and returns a filter action.
- filter(LogEvent) - Method in class cloud.opencode.base.log.filter.MarkerFilter
-
Filters the event based on its marker.
- filter(LogEvent) - Method in class cloud.opencode.base.log.filter.ThrottleFilter
-
Filters the event based on message throttling.
- FilterAction - Enum Class in cloud.opencode.base.log.filter
-
Filter Action Enum - Defines Possible Filter Decisions 过滤器动作枚举 - 定义可能的过滤器决策
- Filtering by Marker | 按标记过滤 - Section in package cloud.opencode.base.log.marker
- findExceptionOfType(Throwable, Class) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Finds an exception of specific type in the causal chain 在因果链中查找特定类型的异常
- flush() - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Blocks until all currently queued log tasks have been processed, or timeout expires.
- format(LogLevel, String, String, String, String) - Method in class cloud.opencode.base.log.spi.ConsoleFormatter
-
Formats a log line with the standard pattern.
- formatExceptionChain(Throwable) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Formats the exception chain as a string 将异常链格式化为字符串
- formatMessage(String, Object...) - Method in interface cloud.opencode.base.log.spi.LogAdapter
-
Formats a message with arguments.
- formatWithColor(String, AnsiColor) - Method in class cloud.opencode.base.log.spi.ConsoleFormatter
-
Wraps text with the given ANSI color code.
- fromName(String) - Static method in enum class cloud.opencode.base.log.LogLevel
-
Parses a log level from its name.
- fromNameOrDefault(String, LogLevel) - Static method in enum class cloud.opencode.base.log.LogLevel
-
Safely parses a log level from its name, returning a default if not found.
- FULL - Enum constant in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
Full masking: ****** - 全部隐藏
G
- get() - Static method in class cloud.opencode.base.log.OpenLog
-
Gets a logger for the calling class.
- get(Class) - Static method in class cloud.opencode.base.log.OpenLog
-
Gets a logger for the specified class.
- get(ScopedValue) - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Gets a value as Optional 获取值作为 Optional
- get(String) - Static method in class cloud.opencode.base.log.context.LogContext
-
Gets a custom context value.
- get(String) - Static method in class cloud.opencode.base.log.context.MDC
-
Gets a value from the MDC.
- get(String) - Static method in class cloud.opencode.base.log.OpenLog
-
Gets a logger for the specified name.
- get(String) - Method in interface cloud.opencode.base.log.spi.MDCAdapter
-
Gets a value from the MDC.
- getAll() - Static method in class cloud.opencode.base.log.context.LogContext
-
Gets all context values.
- getAllLevels() - Method in class cloud.opencode.base.log.level.DynamicLevelManager
-
Returns an unmodifiable copy of all current log level overrides.
- getAvailableProviders() - Static method in class cloud.opencode.base.log.spi.LogProviderFactory
-
Returns a list of available provider names.
- getAverageMillis() - Method in class cloud.opencode.base.log.enhance.LogMetrics.TimingStats
- getCausalChain(Throwable) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Gets the causal chain of an exception 获取异常的因果链
- getCode() - Method in enum class cloud.opencode.base.log.spi.AnsiColor
-
Returns the ANSI escape code.
- getCompactStackTrace(Throwable, int) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Gets a compact stack trace (limited depth) 获取紧凑的堆栈跟踪(有限深度)
- getCopyOfContextMap() - Static method in class cloud.opencode.base.log.context.MDC
-
Returns a copy of the current context map.
- getCopyOfContextMap() - Method in interface cloud.opencode.base.log.spi.MDCAdapter
-
Returns a copy of the current context map.
- getCopyOfStack() - Static method in class cloud.opencode.base.log.context.NDC
-
Returns a copy of the NDC stack.
- getCopyOfStack() - Method in interface cloud.opencode.base.log.spi.NDCAdapter
-
Returns a copy of the NDC stack.
- getCount() - Method in class cloud.opencode.base.log.enhance.LogMetrics.TimingStats
- getCount(String) - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Gets the count for a specific metric 获取特定指标的计数
- getDepth() - Static method in class cloud.opencode.base.log.context.NDC
-
Returns the depth of the NDC stack.
- getDepth() - Method in interface cloud.opencode.base.log.spi.NDCAdapter
-
Returns the depth of the NDC stack.
- getEffectiveLevel(String, LogLevel) - Method in class cloud.opencode.base.log.level.DynamicLevelManager
-
Gets the effective log level for the specified logger name.
- getElapsed() - Method in class cloud.opencode.base.log.perf.StopWatch
-
Returns the elapsed time as a Duration.
- getElapsedMillis() - Method in class cloud.opencode.base.log.perf.StopWatch
-
Returns the elapsed time in milliseconds.
- getElapsedNanos() - Method in class cloud.opencode.base.log.perf.StopWatch
-
Returns the elapsed time in nanoseconds.
- getExceptionSignature(Throwable) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Gets a unique signature for an exception (for deduplication) 获取异常的唯一签名(用于去重)
- getFilters() - Method in class cloud.opencode.base.log.filter.LogFilterChain
-
Returns an unmodifiable view of the current filters.
- getGlobalThreshold() - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Gets the global slow operation threshold.
- getInstance() - Static method in class cloud.opencode.base.log.level.DynamicLevelManager
-
Returns the singleton instance of DynamicLevelManager.
- getLevel() - Method in enum class cloud.opencode.base.log.LogLevel
-
Returns the numeric level value.
- getLevel(String) - Method in class cloud.opencode.base.log.level.DynamicLevelManager
-
Gets the log level override for the specified logger name.
- getLogAdapter() - Method in interface cloud.opencode.base.log.spi.LogProvider
-
Returns the log adapter for this provider.
- getLogger() - Static method in class cloud.opencode.base.log.audit.AuditLog
-
Gets the audit logger.
- getLogger() - Static method in class cloud.opencode.base.log.LoggerFactory
-
Gets a logger for the calling class.
- getLogger(Class) - Static method in class cloud.opencode.base.log.LoggerFactory
-
Gets a logger for the specified class.
- getLogger(Class) - Method in interface cloud.opencode.base.log.spi.LogProvider
-
Gets a logger for the specified class.
- getLogger(String) - Static method in class cloud.opencode.base.log.LoggerFactory
-
Gets a logger for the specified name.
- getLogger(String) - Method in class cloud.opencode.base.log.spi.DefaultLogProvider
- getLogger(String) - Method in interface cloud.opencode.base.log.spi.LogProvider
-
Gets a logger for the specified name.
- getLogLevel() - Method in class cloud.opencode.base.log.perf.SlowOperationConfig
-
Returns the log level for slow operations.
- getMarker(String) - Static method in class cloud.opencode.base.log.marker.Markers
-
Gets or creates a marker with the specified name.
- getMarker(String, Marker...) - Static method in class cloud.opencode.base.log.marker.Markers
-
Gets or creates a marker with references.
- getMarkerNames() - Static method in class cloud.opencode.base.log.marker.Markers
-
Returns all registered marker names.
- getMaxMillis() - Method in class cloud.opencode.base.log.enhance.LogMetrics.TimingStats
- getMDCAdapter() - Method in class cloud.opencode.base.log.spi.DefaultLogProvider
- getMDCAdapter() - Method in interface cloud.opencode.base.log.spi.LogProvider
-
Returns the MDC adapter for this provider.
- getMinMillis() - Method in class cloud.opencode.base.log.enhance.LogMetrics.TimingStats
- getName() - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Returns the name of this logger.
- getName() - Method in interface cloud.opencode.base.log.Logger
-
Returns the name of this logger.
- getName() - Method in enum class cloud.opencode.base.log.LogLevel
-
Returns the level name.
- getName() - Method in interface cloud.opencode.base.log.marker.Marker
-
Returns the name of this marker.
- getName() - Method in class cloud.opencode.base.log.spi.DefaultLogProvider
- getName() - Method in interface cloud.opencode.base.log.spi.LogProvider
-
Returns the name of this provider.
- getNamedCount(String) - Method in record class cloud.opencode.base.log.enhance.LogMetrics.LogStats
-
Gets count for a named metric 获取命名指标的计数
- getNDCAdapter() - Method in class cloud.opencode.base.log.spi.DefaultLogProvider
- getNDCAdapter() - Method in interface cloud.opencode.base.log.spi.LogProvider
-
Returns the NDC adapter for this provider.
- getOperation() - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Gets the current operation name 获取当前操作名
- getOperation() - Method in class cloud.opencode.base.log.perf.StopWatch
-
Returns the operation name.
- getOrder() - Method in interface cloud.opencode.base.log.filter.LogFilter
-
Returns the order of this filter.
- getOverrideCount() - Method in class cloud.opencode.base.log.level.DynamicLevelManager
-
Returns the number of active log level overrides.
- getPriority() - Method in class cloud.opencode.base.log.spi.DefaultLogProvider
- getPriority() - Method in interface cloud.opencode.base.log.spi.LogProvider
-
Returns the priority of this provider.
- getProvider() - Static method in class cloud.opencode.base.log.LoggerFactory
-
Gets the current log provider.
- getProvider() - Static method in class cloud.opencode.base.log.spi.LogProviderFactory
-
Returns the current log provider.
- getProvider(String) - Static method in class cloud.opencode.base.log.spi.LogProviderFactory
-
Returns a provider by name.
- getRequestId() - Static method in class cloud.opencode.base.log.context.LogContext
-
Gets the request ID.
- getRequestId() - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Gets the current request ID 获取当前请求 ID
- getRootCause(Throwable) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Gets the root cause of an exception 获取异常的根因
- getSessionId() - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Gets the current session ID 获取当前会话 ID
- getSlowOperationConfig() - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Gets the slow operation configuration.
- getSpanId() - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Gets the current span ID 获取当前跨度 ID
- getStackTraceString(Throwable) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Gets the stack trace as a string 获取堆栈跟踪字符串
- getStats() - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Gets overall log statistics 获取整体日志统计
- getTenantId() - Static method in class cloud.opencode.base.log.context.LogContext
-
Gets the tenant ID.
- getTenantId() - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Gets the current tenant ID 获取当前租户 ID
- getThreshold() - Method in class cloud.opencode.base.log.perf.SlowOperationConfig
-
Returns the slow operation threshold.
- getThresholdMillis() - Method in class cloud.opencode.base.log.perf.SlowOperationConfig
-
Returns the threshold in milliseconds.
- getTimingStats(String) - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Gets timing statistics for a specific metric 获取特定指标的计时统计
- getTotalMillis() - Method in class cloud.opencode.base.log.enhance.LogMetrics.TimingStats
- getTraceId() - Static method in class cloud.opencode.base.log.context.LogContext
-
Gets the trace ID.
- getTraceId() - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Gets the current trace ID 获取当前追踪 ID
- getUserId() - Static method in class cloud.opencode.base.log.context.LogContext
-
Gets the user ID.
- getUserId() - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Gets the current user ID 获取当前用户 ID
- GREEN - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Green foreground - 绿色前景
H
- hashCode() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.log.CallerInfo
-
Returns a hash code value for this object.
- hashCode() - Method in class cloud.opencode.base.log.context.LogContext.ContextSnapshot
- hashCode() - Method in record class cloud.opencode.base.log.enhance.LogMetrics.LogStats
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns a hash code value for this object.
- hashCode() - Method in interface cloud.opencode.base.log.marker.Marker
-
Returns the hash code of this marker.
- hasMarker() - Method in record class cloud.opencode.base.log.LogEvent
-
Checks if this event has a marker attached.
- hasOverride(String) - Method in class cloud.opencode.base.log.level.DynamicLevelManager
-
Checks if a log level override exists for the specified logger name.
- hasProvider(String) - Static method in class cloud.opencode.base.log.spi.LogProviderFactory
-
Checks if a provider is available.
- hasReferences() - Method in interface cloud.opencode.base.log.marker.Marker
-
Checks if this marker has any references.
- hasThrowable() - Method in record class cloud.opencode.base.log.LogEvent
-
Checks if this event has a throwable attached.
I
- ID_CARD - Enum constant in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
ID card masking: 110***********1234 - 身份证脱敏
- Implementing a Provider | 实现提供者 - Section in package cloud.opencode.base.log.spi
- includeStackTrace(boolean) - Method in class cloud.opencode.base.log.perf.SlowOperationConfig.Builder
-
Sets whether to include stack trace.
- info() - Static method in class cloud.opencode.base.log.enhance.StructuredLog
-
Creates an INFO level structured log builder.
- info(Marker, String) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at INFO level with a marker.
- info(Marker, String) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at INFO level with a marker.
- info(Marker, String) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at INFO level with a marker.
- info(Marker, String, Object...) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at INFO level with a marker and parameters.
- info(Marker, String, Object...) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at INFO level with a marker and parameters.
- info(String) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at INFO level.
- info(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- info(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- info(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- info(String) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at INFO level.
- info(String) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at INFO level.
- info(String, Object...) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at INFO level with parameters.
- info(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- info(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- info(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- info(String, Object...) - Method in interface cloud.opencode.base.log.enhance.SampledLog.SampledLogger
- info(String, Object...) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at INFO level with parameters.
- info(String, Object...) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at INFO level with parameters.
- info(String, Throwable) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at INFO level with an exception.
- info(String, Throwable) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at INFO level with an exception.
- info(Supplier) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at INFO level using lazy evaluation.
- info(Supplier) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at INFO level using lazy evaluation.
- info(Supplier) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at INFO level using lazy evaluation.
- INFO - Enum constant in enum class cloud.opencode.base.log.LogLevel
-
INFO level - Informational messages.
- infoAndCount(String, String, Object...) - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Logs at INFO level and increments counter 以 INFO 级别记录日志并增加计数器
- infoAndTime(String, String, Runnable) - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Logs at INFO level with timing (void return) 以 INFO 级别带计时记录日志(无返回值)
- infoAndTime(String, String, Callable) - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Logs at INFO level with timing and records duration metric 以 INFO 级别带计时记录日志并记录耗时指标
- infoCount() - Method in record class cloud.opencode.base.log.enhance.LogMetrics.LogStats
-
Returns the value of the
infoCountrecord component. - initializationFailed(Throwable) - Static method in exception class cloud.opencode.base.log.exception.OpenLogException
-
Creates an initialization failed exception.
- initialize() - Method in interface cloud.opencode.base.log.audit.AuditLogger
-
Initializes the audit logger.
- initialize() - Method in interface cloud.opencode.base.log.spi.LogProvider
-
Initializes the provider.
- invalidConfig(String, String) - Static method in exception class cloud.opencode.base.log.exception.OpenLogException
-
Creates an invalid configuration exception.
- ip() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns the value of the
iprecord component. - ip(String) - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Sets the IP address.
- ip(String) - Method in class cloud.opencode.base.log.audit.AuditLog.LoggingBuilder
- isAnsiSupported() - Static method in class cloud.opencode.base.log.spi.ConsoleFormatter
-
Detects whether the current environment supports ANSI escape codes.
- isAvailable() - Method in class cloud.opencode.base.log.spi.DefaultLogProvider
- isAvailable() - Method in interface cloud.opencode.base.log.spi.LogProvider
-
Checks if this provider is available.
- isColorEnabled() - Method in class cloud.opencode.base.log.spi.ConsoleFormatter
-
Returns whether ANSI color output is enabled.
- isDebugEnabled() - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Checks if DEBUG level is enabled.
- isDebugEnabled() - Method in interface cloud.opencode.base.log.Logger
-
Checks if DEBUG level is enabled.
- isDebugEnabled() - Static method in class cloud.opencode.base.log.OpenLog
-
Checks if DEBUG level is enabled.
- isDebugEnabled(Marker) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Checks if DEBUG level is enabled for the specified marker.
- isDebugEnabled(Marker) - Method in interface cloud.opencode.base.log.Logger
-
Checks if DEBUG level is enabled for the specified marker.
- isDev() - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Checks if current environment is development 检查当前环境是否为开发环境
- isEnabled() - Method in interface cloud.opencode.base.log.audit.AuditLogger
-
Checks if audit logging is enabled.
- isEnabled() - Method in class cloud.opencode.base.log.perf.SlowOperationConfig
-
Returns whether slow operation detection is enabled.
- isEnabled(LogLevel) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Checks if the specified level is enabled.
- isEnabled(LogLevel) - Method in interface cloud.opencode.base.log.Logger
-
Checks if the specified level is enabled.
- isEnabledFor(LogLevel) - Method in enum class cloud.opencode.base.log.LogLevel
-
Checks if this level is enabled for the specified threshold level.
- isErrorEnabled() - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Checks if ERROR level is enabled.
- isErrorEnabled() - Method in interface cloud.opencode.base.log.Logger
-
Checks if ERROR level is enabled.
- isErrorEnabled() - Static method in class cloud.opencode.base.log.OpenLog
-
Checks if ERROR level is enabled.
- isErrorEnabled(Marker) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Checks if ERROR level is enabled for the specified marker.
- isErrorEnabled(Marker) - Method in interface cloud.opencode.base.log.Logger
-
Checks if ERROR level is enabled for the specified marker.
- isGreaterOrEqual(LogLevel) - Method in enum class cloud.opencode.base.log.LogLevel
-
Checks if this level is greater than or equal to the specified level.
- isIncludeStackTrace() - Method in class cloud.opencode.base.log.perf.SlowOperationConfig
-
Returns whether to include stack trace.
- isInfoEnabled() - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Checks if INFO level is enabled.
- isInfoEnabled() - Method in interface cloud.opencode.base.log.Logger
-
Checks if INFO level is enabled.
- isInfoEnabled() - Static method in class cloud.opencode.base.log.OpenLog
-
Checks if INFO level is enabled.
- isInfoEnabled(Marker) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Checks if INFO level is enabled for the specified marker.
- isInfoEnabled(Marker) - Method in interface cloud.opencode.base.log.Logger
-
Checks if INFO level is enabled for the specified marker.
- isProd() - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Checks if current environment is production 检查当前环境是否为生产环境
- isRunning() - Method in class cloud.opencode.base.log.perf.StopWatch
-
Checks if the timer is running.
- isSlow(long) - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Checks if an operation is slow based on global threshold.
- isSlow(long) - Method in class cloud.opencode.base.log.perf.SlowOperationConfig
-
Checks if the elapsed time exceeds the threshold.
- isSuccess() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Checks if the event was successful.
- isTest() - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Checks if current environment is test 检查当前环境是否为测试环境
- isTraceEnabled() - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Checks if TRACE level is enabled.
- isTraceEnabled() - Method in interface cloud.opencode.base.log.Logger
-
Checks if TRACE level is enabled.
- isTraceEnabled() - Static method in class cloud.opencode.base.log.OpenLog
-
Checks if TRACE level is enabled.
- isTraceEnabled(Marker) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Checks if TRACE level is enabled for the specified marker.
- isTraceEnabled(Marker) - Method in interface cloud.opencode.base.log.Logger
-
Checks if TRACE level is enabled for the specified marker.
- isWarnEnabled() - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Checks if WARN level is enabled.
- isWarnEnabled() - Method in interface cloud.opencode.base.log.Logger
-
Checks if WARN level is enabled.
- isWarnEnabled() - Static method in class cloud.opencode.base.log.OpenLog
-
Checks if WARN level is enabled.
- isWarnEnabled(Marker) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Checks if WARN level is enabled for the specified marker.
- isWarnEnabled(Marker) - Method in interface cloud.opencode.base.log.Logger
-
Checks if WARN level is enabled for the specified marker.
- iterator() - Method in interface cloud.opencode.base.log.marker.Marker
-
Returns an iterator over the referenced markers.
K
- KEY_PARENT_SPAN_ID - Static variable in class cloud.opencode.base.log.context.LogContext
- KEY_REQUEST_ID - Static variable in class cloud.opencode.base.log.context.LogContext
- KEY_SPAN_ID - Static variable in class cloud.opencode.base.log.context.LogContext
- KEY_TENANT_ID - Static variable in class cloud.opencode.base.log.context.LogContext
- KEY_TRACE_ID - Static variable in class cloud.opencode.base.log.context.LogContext
- KEY_USER_ID - Static variable in class cloud.opencode.base.log.context.LogContext
- Key Classes | 核心类 - Section in package cloud.opencode.base.log.audit
- Key Classes | 核心类 - Section in package cloud.opencode.base.log.context
- Key Classes | 核心类 - Section in package cloud.opencode.base.log.enhance
- Key Classes | 核心类 - Section in package cloud.opencode.base.log.exception
- Key Classes | 核心类 - Section in package cloud.opencode.base.log.marker
- Key Classes | 核心类 - Section in package cloud.opencode.base.log.perf
- Key Classes | 核心类 - Section in package cloud.opencode.base.log.spi
- Key Features | 核心特性 - Section in package cloud.opencode.base.log
L
- level() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns the value of the
levelrecord component. - LevelFilter - Class in cloud.opencode.base.log.filter
-
Level Filter - Filters Log Events by Threshold Level 级别过滤器 - 按阈值级别过滤日志事件
- LevelFilter(LogLevel) - Constructor for class cloud.opencode.base.log.filter.LevelFilter
-
Creates a level filter with the specified threshold.
- lineNumber() - Method in record class cloud.opencode.base.log.CallerInfo
-
Returns the value of the
lineNumberrecord component. - log() - Method in class cloud.opencode.base.log.enhance.StructuredLog.Builder
-
Logs to the default logger.
- log(AuditEvent) - Static method in class cloud.opencode.base.log.audit.AuditLog
-
Logs an audit event.
- log(AuditEvent) - Method in interface cloud.opencode.base.log.audit.AuditLogger
-
Logs an audit event.
- log(Logger) - Method in class cloud.opencode.base.log.enhance.StructuredLog.Builder
-
Logs to the specified logger.
- log(LogLevel, String) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at the specified level.
- log(LogLevel, String) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at the specified level.
- log(LogLevel, String, Object...) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at the specified level with parameters.
- log(LogLevel, String, Object...) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at the specified level with parameters.
- log(LogLevel, String, Throwable) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at the specified level with an exception.
- log(LogLevel, String, Throwable) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at the specified level with an exception.
- log(String, long) - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Logs performance information.
- log(String, String, String, String) - Static method in class cloud.opencode.base.log.audit.AuditLog
-
Logs a simple audit event.
- log(String, String, String, String, Map) - Static method in class cloud.opencode.base.log.audit.AuditLog
-
Logs an audit event with details.
- LogAdapter - Interface in cloud.opencode.base.log.spi
-
Log Adapter Interface - Logging Framework Adapter 日志适配器接口 - 日志框架适配器
- LogContext - Class in cloud.opencode.base.log.context
-
Log Context - Unified Context Management 日志上下文 - 统一上下文管理
- LogContext.ContextSnapshot - Class in cloud.opencode.base.log.context
-
Context Snapshot - Immutable snapshot for async propagation.
- LogContext for Standard Keys | LogContext 标准键 - Section in package cloud.opencode.base.log.context
- logDataChange(String, String, String, String, Object, Object) - Static method in class cloud.opencode.base.log.audit.AuditLog
-
Logs a data change event.
- LogEvent - Record Class in cloud.opencode.base.log
-
Log Event Record - Immutable Representation of a Log Entry 日志事件记录 - 日志条目的不可变表示
- LogEvent(LogLevel, String, String, Throwable, Marker, Map, long, String, CallerInfo) - Constructor for record class cloud.opencode.base.log.LogEvent
-
Compact constructor that validates required fields and makes a defensive copy of the MDC map.
- LogEvent.Builder - Class in cloud.opencode.base.log
-
Log Event Builder - Fluent Builder for LogEvent Construction 日志事件构建器 - LogEvent 的流式构建器
- LogFilter - Interface in cloud.opencode.base.log.filter
-
Log Filter Interface - Functional Filter for Log Events 日志过滤器接口 - 日志事件的函数式过滤器
- LogFilterChain - Class in cloud.opencode.base.log.filter
-
Log Filter Chain - Ordered Chain of Log Filters 日志过滤器链 - 有序的日志过滤器链
- LogFilterChain() - Constructor for class cloud.opencode.base.log.filter.LogFilterChain
- Logger - Interface in cloud.opencode.base.log
-
Logger Interface - Core Logging Contract 日志记录器接口 - 核心日志契约
- LoggerFactory - Class in cloud.opencode.base.log
-
Logger Factory - Factory for Creating Logger Instances 日志工厂 - 创建日志记录器实例的工厂
- loggerName() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns the value of the
loggerNamerecord component. - loggerName(String) - Method in class cloud.opencode.base.log.LogEvent.Builder
-
Sets the logger name.
- logLevel(LogLevel) - Method in class cloud.opencode.base.log.perf.SlowOperationConfig.Builder
-
Sets the log level.
- LogLevel - Enum Class in cloud.opencode.base.log
-
Log Level Enumeration - Defines Standard Log Levels 日志级别枚举 - 定义标准日志级别
- logLogin(String, boolean, String) - Static method in class cloud.opencode.base.log.audit.AuditLog
-
Logs a login event.
- logLogout(String) - Static method in class cloud.opencode.base.log.audit.AuditLog
-
Logs a logout event.
- LogMasking - Class in cloud.opencode.base.log.enhance
-
Log Masking - Sensitive Data Masking Utility 日志脱敏 - 敏感数据脱敏工具
- LogMasking.Mask - Annotation Interface in cloud.opencode.base.log.enhance
-
Annotation for marking fields that should be masked in logs.
- LogMasking.MaskingStrategy - Enum Class in cloud.opencode.base.log.enhance
-
Masking strategies for different data types.
- LogMetrics - Class in cloud.opencode.base.log.enhance
-
Log Metrics - Logging with Built-in Metrics Collection 日志指标 - 带内置指标收集的日志
- LogMetrics.LogStats - Record Class in cloud.opencode.base.log.enhance
-
Log Statistics Snapshot 日志统计快照
- LogMetrics.TimingStats - Class in cloud.opencode.base.log.enhance
-
Timing Statistics 计时统计
- LogProvider - Interface in cloud.opencode.base.log.spi
-
Log Provider SPI Interface - Pluggable Logging Engine 日志提供者 SPI 接口 - 可插拔日志引擎
- LogProviderFactory - Class in cloud.opencode.base.log.spi
-
Log Provider Factory - Provider Discovery and Management 日志提供者工厂 - 提供者发现和管理
- LogStats(long, long, long, long, long, Map) - Constructor for record class cloud.opencode.base.log.enhance.LogMetrics.LogStats
-
Creates an instance of a
LogStatsrecord class.
M
- MAGENTA - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Magenta foreground - 洋红色前景
- marker() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns the value of the
markerrecord component. - marker(Marker) - Method in class cloud.opencode.base.log.enhance.StructuredLog.Builder
-
Sets the marker.
- marker(Marker) - Method in class cloud.opencode.base.log.LogEvent.Builder
-
Sets the marker.
- Marker - Interface in cloud.opencode.base.log.marker
-
Marker Interface - Log Event Marker 标记接口 - 日志事件标记
- MarkerFilter - Class in cloud.opencode.base.log.filter
-
Marker Filter - Filters Log Events by Marker Name 标记过滤器 - 按标记名称过滤日志事件
- MarkerFilter(String, FilterAction, FilterAction) - Constructor for class cloud.opencode.base.log.filter.MarkerFilter
-
Creates a marker filter with the specified name and actions.
- Markers - Class in cloud.opencode.base.log.marker
-
Markers - Marker Factory and Predefined Markers 标记工厂和预定义标记
- mask(String) - Method in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
Masks the value.
- mask(String, LogMasking.MaskingStrategy) - Static method in class cloud.opencode.base.log.enhance.LogMasking
-
Masks a value using the specified strategy.
- maskByField(String, String) - Static method in class cloud.opencode.base.log.enhance.LogMasking
-
Masks a value based on the field name.
- Masking Strategies | 脱敏策略 - Section in package cloud.opencode.base.log.enhance
- mdc() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns the value of the
mdcrecord component. - mdc(Map) - Method in class cloud.opencode.base.log.LogEvent.Builder
-
Sets the MDC context map.
- MDC - Class in cloud.opencode.base.log.context
-
MDC - Mapped Diagnostic Context MDC - 映射诊断上下文
- MDC.MDCScope - Class in cloud.opencode.base.log.context
-
MDC Scope - AutoCloseable for automatic cleanup.
- MDCAdapter - Interface in cloud.opencode.base.log.spi
-
MDC Adapter Interface - Mapped Diagnostic Context Adapter MDC 适配器接口 - 映射诊断上下文适配器
- mdcContext() - Method in class cloud.opencode.base.log.context.LogContext.ContextSnapshot
-
Returns the MDC context.
- MDC Usage | MDC 使用 - Section in package cloud.opencode.base.log.context
- message() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns the value of the
messagerecord component. - message(String) - Method in class cloud.opencode.base.log.enhance.StructuredLog.Builder
-
Sets the log message.
- methodName() - Method in record class cloud.opencode.base.log.CallerInfo
-
Returns the value of the
methodNamerecord component.
N
- NAME - Enum constant in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
Name masking: 张*三 - 姓名脱敏
- namedCounts() - Method in record class cloud.opencode.base.log.enhance.LogMetrics.LogStats
-
Returns the value of the
namedCountsrecord component. - NDC - Class in cloud.opencode.base.log.context
-
NDC - Nested Diagnostic Context NDC - 嵌套诊断上下文
- NDC.NDCScope - Class in cloud.opencode.base.log.context
-
NDC Scope - AutoCloseable for automatic pop.
- NDCAdapter - Interface in cloud.opencode.base.log.spi
-
NDC Adapter Interface - Nested Diagnostic Context Adapter NDC 适配器接口 - 嵌套诊断上下文适配器
- NDCScope() - Constructor for class cloud.opencode.base.log.context.NDC.NDCScope
- NDC Usage | NDC 使用 - Section in package cloud.opencode.base.log.context
- NETWORK - Static variable in class cloud.opencode.base.log.marker.Markers
-
Network operations - 网络操作
- NEUTRAL - Enum constant in enum class cloud.opencode.base.log.filter.FilterAction
-
No decision; pass to the next filter in the chain.
- newVirtualThreadExecutor() - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Creates a Virtual Thread ExecutorService with context propagation 创建带上下文传播的虚拟线程执行器服务
- newVirtualThreadExecutor(String) - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Creates a named Virtual Thread ExecutorService with context propagation 创建命名的带上下文传播的虚拟线程执行器服务
O
- OFF - Enum constant in enum class cloud.opencode.base.log.LogLevel
-
OFF level - Turn off logging.
- once() - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Returns a logger that logs only once per call site 返回每个调用点只记录一次的日志器
- OpenLog - Class in cloud.opencode.base.log
-
OpenLog - Unified Logging Facade OpenLog - 统一日志门面
- OpenLogException - Exception Class in cloud.opencode.base.log.exception
-
Open Log Exception - Logging Component Exception Open 日志异常 - 日志组件异常
- OpenLogException(String) - Constructor for exception class cloud.opencode.base.log.exception.OpenLogException
-
Constructs a new exception with the specified message.
- OpenLogException(String, Throwable) - Constructor for exception class cloud.opencode.base.log.exception.OpenLogException
-
Constructs a new exception with the specified message and cause.
- OPERATION - Static variable in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Operation name for current operation 当前操作的操作名
P
- Package Structure | 包结构 - Section in package cloud.opencode.base.log
- PASSWORD - Enum constant in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
Password masking: [PROTECTED] - 密码脱敏
- peek() - Static method in class cloud.opencode.base.log.context.NDC
-
Returns the top message without removing it.
- peek() - Method in interface cloud.opencode.base.log.spi.NDCAdapter
-
Returns the top message without removing it.
- PerfLog - Class in cloud.opencode.base.log.perf
-
PerfLog - Performance Logging Utility PerfLog - 性能日志工具
- PerfLog Convenience Methods | PerfLog 便捷方法 - Section in package cloud.opencode.base.log.perf
- PERFORMANCE - Static variable in class cloud.opencode.base.log.marker.Markers
-
Performance metrics - 性能指标
- PHONE - Enum constant in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
Phone masking: 138****5678 - 手机号脱敏
- pop() - Static method in class cloud.opencode.base.log.context.NDC
-
Pops the top message from the NDC stack.
- pop() - Method in interface cloud.opencode.base.log.spi.NDCAdapter
-
Pops the top message from the NDC stack.
- Predefined Markers | 预定义标记 - Section in package cloud.opencode.base.log.marker
- prodOnly() - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Returns a logger that only logs in production environment 返回仅在生产环境记录日志的日志器
- providerNotFound() - Static method in exception class cloud.opencode.base.log.exception.OpenLogException
-
Creates a provider not found exception.
- Provider Registration | 提供者注册 - Section in package cloud.opencode.base.log.spi
- push(String) - Static method in class cloud.opencode.base.log.context.NDC
-
Pushes a message onto the NDC stack.
- push(String) - Method in interface cloud.opencode.base.log.spi.NDCAdapter
-
Pushes a message onto the NDC stack.
- put(String, String) - Static method in class cloud.opencode.base.log.context.MDC
-
Puts a key-value pair into the MDC.
- put(String, String) - Method in interface cloud.opencode.base.log.spi.MDCAdapter
-
Puts a key-value pair into the MDC.
Q
- Quick Start | 快速开始 - Section in package cloud.opencode.base.log
R
- record(long) - Method in class cloud.opencode.base.log.enhance.LogMetrics.TimingStats
- RED - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Red foreground - 红色前景
- registerPatternRule(String, Function) - Static method in class cloud.opencode.base.log.enhance.LogMasking
-
Registers a pattern-based masking rule.
- registerProvider(LogProvider) - Static method in class cloud.opencode.base.log.spi.LogProviderFactory
-
Registers a log provider.
- registerRule(String, LogMasking.MaskingStrategy) - Static method in class cloud.opencode.base.log.enhance.LogMasking
-
Registers a masking rule for a field name.
- remove(Marker) - Method in interface cloud.opencode.base.log.marker.Marker
-
Removes a reference to another marker.
- remove(String) - Static method in class cloud.opencode.base.log.context.MDC
-
Removes a key from the MDC.
- remove(String) - Method in interface cloud.opencode.base.log.spi.MDCAdapter
-
Removes a key from the MDC.
- removeFilter(LogFilter) - Method in class cloud.opencode.base.log.filter.LogFilterChain
-
Removes a filter from this chain.
- REQUEST_ID - Static variable in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Request ID for request tracking 请求追踪的请求 ID
- reset() - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Resets all statistics (useful for testing) 重置所有统计(用于测试)
- reset() - Method in class cloud.opencode.base.log.perf.StopWatch
-
Resets the timer.
- RESET - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
Reset all attributes - 重置所有属性
- resetAll() - Method in class cloud.opencode.base.log.level.DynamicLevelManager
-
Clears all log level overrides.
- resetLevel(String) - Method in class cloud.opencode.base.log.level.DynamicLevelManager
-
Removes the log level override for the specified logger name.
- result() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns the value of the
resultrecord component. - result(String) - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Sets the result.
- result(String) - Method in class cloud.opencode.base.log.audit.AuditLog.LoggingBuilder
- RESULT_FAILURE - Static variable in record class cloud.opencode.base.log.audit.AuditEvent
-
Result constant for failure.
- RESULT_SUCCESS - Static variable in record class cloud.opencode.base.log.audit.AuditEvent
-
Result constant for success.
- run(Runnable) - Method in class cloud.opencode.base.log.enhance.ScopedLogContext.Carrier
-
Runs a task in this context 在此上下文中运行任务
- run(String, String, Runnable) - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Runs a task with trace ID and user ID 使用追踪 ID 和用户 ID 运行任务
- runAsync(Runnable) - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Runs a task asynchronously on a Virtual Thread with context propagation 在虚拟线程上异步运行任务并传播上下文
- runWith(Runnable) - Method in class cloud.opencode.base.log.context.LogContext.ContextSnapshot
-
Executes a task with this context.
- runWith(String, String, Runnable) - Static method in class cloud.opencode.base.log.context.MDC
-
Executes a task with a temporary MDC value.
- runWithContext(String, String, Runnable) - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Executes a task with specific context values 使用特定上下文值执行任务
S
- sample(double) - Static method in class cloud.opencode.base.log.enhance.SampledLog
-
Creates a probability-based sampled logger.
- sampleByCount(int) - Static method in class cloud.opencode.base.log.enhance.SampledLog
-
Creates a count-based sampled logger.
- sampleByTime(Duration) - Static method in class cloud.opencode.base.log.enhance.SampledLog
-
Creates a time-based sampled logger.
- SampledLog - Class in cloud.opencode.base.log.enhance
-
Sampled Log - Rate-limited and Sampled Logging 采样日志 - 限流和采样的日志
- SampledLog.SampledLogger - Interface in cloud.opencode.base.log.enhance
-
Sampled Logger Interface.
- Sampled Logging | 采样日志 - Section in package cloud.opencode.base.log.enhance
- scope(String) - Static method in class cloud.opencode.base.log.context.NDC
-
Creates an NDC scope for automatic cleanup.
- scope(String, String) - Static method in class cloud.opencode.base.log.context.MDC
-
Creates an MDC scope for automatic cleanup.
- scope(Map) - Static method in class cloud.opencode.base.log.context.MDC
-
Creates an MDC scope with multiple values.
- ScopedLogContext - Class in cloud.opencode.base.log.enhance
-
Scoped Log Context - JDK 25+ ScopedValue-based Context 作用域日志上下文 - 基于 JDK 25+ ScopedValue 的上下文
- ScopedLogContext.Carrier - Class in cloud.opencode.base.log.enhance
-
Carrier for binding multiple values and executing tasks 用于绑定多个值和执行任务的载体
- SECURITY - Static variable in class cloud.opencode.base.log.marker.Markers
-
Security-related events - 安全相关事件
- SENSITIVE - Static variable in class cloud.opencode.base.log.marker.Markers
-
Sensitive data marker - 敏感数据标记
- SESSION_ID - Static variable in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Session ID for session tracking 会话追踪的会话 ID
- set(String, String) - Static method in class cloud.opencode.base.log.context.LogContext
-
Sets a custom context value.
- setContextMap(Map) - Static method in class cloud.opencode.base.log.context.MDC
-
Sets the context map.
- setContextMap(Map) - Method in interface cloud.opencode.base.log.spi.MDCAdapter
-
Sets the context map.
- setGlobalThreshold(long) - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Sets the global slow operation threshold.
- setLevel(String, LogLevel) - Method in class cloud.opencode.base.log.level.DynamicLevelManager
-
Sets a log level override for the specified logger name.
- setLogger(AuditLogger) - Static method in class cloud.opencode.base.log.audit.AuditLog
-
Sets the audit logger.
- setMaxDepth(int) - Static method in class cloud.opencode.base.log.context.NDC
-
Sets the maximum depth of the NDC stack.
- setMaxDepth(int) - Method in interface cloud.opencode.base.log.spi.NDCAdapter
-
Sets the maximum depth of the NDC stack.
- setProvider(LogProvider) - Static method in class cloud.opencode.base.log.LoggerFactory
-
Sets the log provider.
- setProvider(LogProvider) - Static method in class cloud.opencode.base.log.spi.LogProviderFactory
-
Sets the current log provider.
- setRequestId(String) - Static method in class cloud.opencode.base.log.context.LogContext
-
Sets the request ID.
- setSlowOperationConfig(SlowOperationConfig) - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Sets the slow operation configuration.
- setStack(Deque) - Static method in class cloud.opencode.base.log.context.NDC
-
Sets the NDC stack.
- setStack(Deque) - Method in interface cloud.opencode.base.log.spi.NDCAdapter
-
Sets the NDC stack.
- setTenantId(String) - Static method in class cloud.opencode.base.log.context.LogContext
-
Sets the tenant ID.
- setTraceId(String) - Static method in class cloud.opencode.base.log.context.LogContext
-
Sets the trace ID.
- setUserId(String) - Static method in class cloud.opencode.base.log.context.LogContext
-
Sets the user ID.
- shouldLog() - Method in interface cloud.opencode.base.log.enhance.SampledLog.SampledLogger
-
Checks if the next log should be sampled.
- shouldMask(String) - Static method in class cloud.opencode.base.log.enhance.LogMasking
-
Checks if a field should be masked.
- shutdown() - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Initiates graceful shutdown.
- shutdown() - Method in interface cloud.opencode.base.log.audit.AuditLogger
-
Shuts down the audit logger.
- shutdown() - Method in interface cloud.opencode.base.log.spi.LogProvider
-
Shuts down the provider.
- Simple Audit Logging | 简单审计日志 - Section in package cloud.opencode.base.log.audit
- SlowOperationConfig - Class in cloud.opencode.base.log.perf
-
Slow Operation Config - Configuration for Slow Operation Detection 慢操作配置 - 慢操作检测配置
- SlowOperationConfig.Builder - Class in cloud.opencode.base.log.perf
-
Builder for SlowOperationConfig.
- Slow Operation Detection | 慢操作检测 - Section in package cloud.opencode.base.log.perf
- snapshot() - Static method in class cloud.opencode.base.log.context.LogContext
-
Creates a snapshot of the current context.
- SPAN_ID - Static variable in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Span ID for distributed tracing spans 分布式追踪跨度的跨度 ID
- spanId(String) - Method in class cloud.opencode.base.log.enhance.StructuredLog.Builder
-
Sets the span ID.
- start(String) - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Starts a new StopWatch.
- start(String) - Static method in class cloud.opencode.base.log.perf.StopWatch
-
Creates and starts a new StopWatch.
- startTiming() - Method in class cloud.opencode.base.log.perf.StopWatch
-
Starts the timer.
- startVirtualThread(Runnable) - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Creates and starts a Virtual Thread with propagated log context 创建并启动带日志上下文传播的虚拟线程
- stop() - Method in class cloud.opencode.base.log.perf.StopWatch
-
Stops the timer.
- stopAndLog() - Method in class cloud.opencode.base.log.perf.StopWatch
-
Stops the timer and logs the result.
- stopAndLog(long) - Method in class cloud.opencode.base.log.perf.StopWatch
-
Stops the timer and logs with threshold warning.
- StopWatch - Class in cloud.opencode.base.log.perf
-
StopWatch - High-precision Timer for Performance Measurement 计时器 - 用于性能测量的高精度计时器
- StopWatch Usage | StopWatch 使用 - Section in package cloud.opencode.base.log.perf
- StructuredLog - Class in cloud.opencode.base.log.enhance
-
Structured Log - JSON-style Structured Logging 结构化日志 - JSON 风格的结构化日志
- StructuredLog.Builder - Class in cloud.opencode.base.log.enhance
-
Structured Log Builder.
- Structured Logging | 结构化日志 - Section in package cloud.opencode.base.log.enhance
- success() - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Sets the result as success.
- success() - Method in class cloud.opencode.base.log.audit.AuditLog.LoggingBuilder
- summarize(Throwable) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Creates a summary of an exception 创建异常摘要
- supplyAsync(Callable) - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Supplies a value asynchronously on a Virtual Thread with context propagation 在虚拟线程上异步提供值并传播上下文
- supportsMarkers() - Method in interface cloud.opencode.base.log.spi.LogAdapter
-
Checks if the adapter supports markers.
- supportsMDC() - Method in interface cloud.opencode.base.log.spi.LogAdapter
-
Checks if the adapter supports MDC.
- supportsNDC() - Method in interface cloud.opencode.base.log.spi.LogAdapter
-
Checks if the adapter supports NDC.
- SYSTEM - Static variable in class cloud.opencode.base.log.marker.Markers
-
System-level events - 系统级事件
T
- target() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns the value of the
targetrecord component. - target(String) - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Sets the target.
- target(String) - Method in class cloud.opencode.base.log.audit.AuditLog.LoggingBuilder
- targetId() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns the value of the
targetIdrecord component. - targetId(String) - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Sets the target ID.
- targetId(String) - Method in class cloud.opencode.base.log.audit.AuditLog.LoggingBuilder
- TENANT_ID - Static variable in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Tenant ID for multi-tenant applications 多租户应用的租户 ID
- testOnly() - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Returns a logger that only logs in test environment 返回仅在测试环境记录日志的日志器
- threadName() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns the value of the
threadNamerecord component. - threadName(String) - Method in class cloud.opencode.base.log.LogEvent.Builder
-
Sets the thread name.
- threshold(Duration) - Method in class cloud.opencode.base.log.perf.SlowOperationConfig.Builder
-
Sets the threshold.
- thresholdMillis(long) - Method in class cloud.opencode.base.log.perf.SlowOperationConfig.Builder
-
Sets the threshold in milliseconds.
- ThrottleFilter - Class in cloud.opencode.base.log.filter
-
Throttle Filter - Rate-Limits Duplicate Log Messages 节流过滤器 - 限制重复日志消息的速率
- ThrottleFilter(Duration) - Constructor for class cloud.opencode.base.log.filter.ThrottleFilter
-
Creates a throttle filter with the specified interval.
- throwable() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns the value of the
throwablerecord component. - throwable(Throwable) - Method in class cloud.opencode.base.log.LogEvent.Builder
-
Sets the throwable.
- timed(String, Runnable) - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Executes a task and logs the elapsed time.
- timed(String, Callable) - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Executes a task and logs the elapsed time, returning the result.
- timedWithThreshold(String, long, Runnable) - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Executes a task with threshold warning.
- timedWithThreshold(String, long, Callable) - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Executes a task with threshold warning, returning the result.
- timestamp() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns the value of the
timestamprecord component. - timestamp(long) - Method in class cloud.opencode.base.log.LogEvent.Builder
-
Sets the timestamp in milliseconds since epoch.
- timestamp(Instant) - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Sets the timestamp.
- timestampMillis() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns the value of the
timestampMillisrecord component. - TimingStats() - Constructor for class cloud.opencode.base.log.enhance.LogMetrics.TimingStats
- toCompactString() - Method in record class cloud.opencode.base.log.CallerInfo
-
Returns a compact string representation in "SimpleClassName:line" format.
- toFormattedString() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns a formatted string representation of this log event.
- toShortString() - Method in record class cloud.opencode.base.log.CallerInfo
-
Returns a short string representation in "SimpleClassName.method:line" format.
- toString() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.log.CallerInfo
-
Returns a string representation of this record class.
- toString() - Method in class cloud.opencode.base.log.context.LogContext.ContextSnapshot
- toString() - Method in record class cloud.opencode.base.log.enhance.LogMetrics.LogStats
-
Returns a string representation of this record class.
- toString() - Method in class cloud.opencode.base.log.enhance.LogMetrics.TimingStats
- toString() - Method in record class cloud.opencode.base.log.LogEvent
-
Returns a string representation of this record class.
- toString() - Method in enum class cloud.opencode.base.log.LogLevel
- toString() - Method in class cloud.opencode.base.log.perf.SlowOperationConfig
- toString() - Method in class cloud.opencode.base.log.perf.StopWatch
- toString() - Method in enum class cloud.opencode.base.log.spi.AnsiColor
-
Returns the ANSI escape code.
- totalLogs() - Method in record class cloud.opencode.base.log.enhance.LogMetrics.LogStats
-
Returns the value of the
totalLogsrecord component. - trace() - Static method in class cloud.opencode.base.log.enhance.StructuredLog
-
Creates a TRACE level structured log builder.
- trace(Marker, String) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at TRACE level with a marker.
- trace(Marker, String) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at TRACE level with a marker.
- trace(Marker, String, Object...) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at TRACE level with a marker and parameters.
- trace(Marker, String, Object...) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at TRACE level with a marker and parameters.
- trace(String) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at TRACE level.
- trace(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- trace(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- trace(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- trace(String) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at TRACE level.
- trace(String) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at TRACE level.
- trace(String, Object...) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at TRACE level with parameters.
- trace(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- trace(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- trace(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- trace(String, Object...) - Method in interface cloud.opencode.base.log.enhance.SampledLog.SampledLogger
- trace(String, Object...) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at TRACE level with parameters.
- trace(String, Object...) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at TRACE level with parameters.
- trace(String, Throwable) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at TRACE level with an exception.
- trace(String, Throwable) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at TRACE level with an exception.
- trace(Supplier) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at TRACE level using lazy evaluation.
- trace(Supplier) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at TRACE level using lazy evaluation.
- trace(Supplier) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at TRACE level using lazy evaluation.
- TRACE - Enum constant in enum class cloud.opencode.base.log.LogLevel
-
TRACE level - Most detailed information.
- TRACE_ID - Static variable in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Trace ID for distributed tracing 分布式追踪的追踪 ID
- traceId(String) - Method in class cloud.opencode.base.log.enhance.StructuredLog.Builder
-
Sets the trace ID.
U
- underlying() - Method in class cloud.opencode.base.log.enhance.ScopedLogContext.Carrier
-
Gets the underlying carrier 获取底层载体
- UNKNOWN - Static variable in record class cloud.opencode.base.log.CallerInfo
-
Unknown caller info constant, used when caller information is unavailable.
- unsupportedOperation(String) - Static method in exception class cloud.opencode.base.log.exception.OpenLogException
-
Creates an unsupported operation exception.
- Usage Examples | 使用示例 - Section in package cloud.opencode.base.log.marker
- USER_ID - Static variable in class cloud.opencode.base.log.enhance.ScopedLogContext
-
User ID for user identification 用户标识的用户 ID
- userAgent() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns the value of the
userAgentrecord component. - userAgent(String) - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Sets the user agent.
- userAgent(String) - Method in class cloud.opencode.base.log.audit.AuditLog.LoggingBuilder
- userId() - Method in record class cloud.opencode.base.log.audit.AuditEvent
-
Returns the value of the
userIdrecord component. - userId(String) - Method in class cloud.opencode.base.log.audit.AuditEvent.Builder
-
Sets the user ID.
- userId(String) - Method in class cloud.opencode.base.log.audit.AuditLog.LoggingBuilder
V
- value() - Element in annotation interface cloud.opencode.base.log.enhance.LogMasking.Mask
-
The masking strategy.
- valueOf(String) - Static method in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.log.filter.FilterAction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.log.LogLevel
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.log.spi.AnsiColor
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class cloud.opencode.base.log.enhance.LogMasking.MaskingStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.log.filter.FilterAction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.log.LogLevel
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.log.spi.AnsiColor
-
Returns an array containing the constants of this enum class, in the order they are declared.
- virtualThreadBuilder(String) - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Creates a Virtual Thread builder with context propagation 创建带上下文传播的虚拟线程构建器
- VirtualThreadContext - Class in cloud.opencode.base.log.enhance
-
Virtual Thread Context Propagation - JDK 25+ 虚拟线程上下文传播 - JDK 25+
W
- warn() - Static method in class cloud.opencode.base.log.enhance.StructuredLog
-
Creates a WARN level structured log builder.
- warn(Marker, String) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at WARN level with a marker.
- warn(Marker, String) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at WARN level with a marker.
- warn(Marker, String, Object...) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at WARN level with a marker and parameters.
- warn(Marker, String, Object...) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at WARN level with a marker and parameters.
- warn(Marker, String, Throwable) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at WARN level with a marker and exception.
- warn(Marker, String, Throwable) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at WARN level with a marker and exception.
- warn(String) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at WARN level.
- warn(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- warn(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- warn(String) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- warn(String) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at WARN level.
- warn(String) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at WARN level.
- warn(String, Object...) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at WARN level with parameters.
- warn(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- warn(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- warn(String, Object...) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- warn(String, Object...) - Method in interface cloud.opencode.base.log.enhance.SampledLog.SampledLogger
- warn(String, Object...) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at WARN level with parameters.
- warn(String, Object...) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at WARN level with parameters.
- warn(String, Throwable) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at WARN level with an exception.
- warn(String, Throwable) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.ConditionalLogger
- warn(String, Throwable) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.OnceLogger
- warn(String, Throwable) - Method in class cloud.opencode.base.log.enhance.ConditionalLog.RateLimitedLogger
- warn(String, Throwable) - Static method in class cloud.opencode.base.log.enhance.ExceptionLog
-
Logs a warning with root cause analysis 带根因分析记录警告
- warn(String, Throwable) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at WARN level with an exception.
- warn(String, Throwable) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at WARN level with an exception.
- warn(Supplier) - Method in class cloud.opencode.base.log.async.AsyncLogger
-
Logs a message at WARN level using lazy evaluation.
- warn(Supplier) - Method in interface cloud.opencode.base.log.Logger
-
Logs a message at WARN level using lazy evaluation.
- warn(Supplier) - Static method in class cloud.opencode.base.log.OpenLog
-
Logs a message at WARN level using lazy evaluation.
- WARN - Enum constant in enum class cloud.opencode.base.log.LogLevel
-
WARN level - Warning situations.
- warnAndCount(String, String, Object...) - Static method in class cloud.opencode.base.log.enhance.LogMetrics
-
Logs at WARN level and increments counter 以 WARN 级别记录日志并增加计数器
- warnCount() - Method in record class cloud.opencode.base.log.enhance.LogMetrics.LogStats
-
Returns the value of the
warnCountrecord component. - warnSlow(String, long, long) - Static method in class cloud.opencode.base.log.perf.PerfLog
-
Logs slow operation warning.
- when(boolean) - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Returns a logger that only logs when condition is true 返回仅在条件为真时记录日志的日志器
- when(Supplier) - Static method in class cloud.opencode.base.log.enhance.ConditionalLog
-
Returns a logger that only logs when condition supplier returns true 返回仅在条件供应者返回真时记录日志的日志器
- where(ScopedValue, String) - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Creates a carrier with a single binding 创建带单个绑定的载体
- where(Map) - Static method in class cloud.opencode.base.log.enhance.ScopedLogContext
-
Creates a carrier with multiple bindings from a map 从映射创建带多个绑定的载体
- WHITE - Enum constant in enum class cloud.opencode.base.log.spi.AnsiColor
-
White foreground - 白色前景
- wrap(Logger) - Static method in class cloud.opencode.base.log.async.AsyncLogger
-
Wraps the given logger with async dispatch using the default queue capacity (8192).
- wrap(Logger, int) - Static method in class cloud.opencode.base.log.async.AsyncLogger
-
Wraps the given logger with async dispatch using the specified queue capacity.
- wrap(Runnable) - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Wraps a Runnable to propagate log context 包装 Runnable 以传播日志上下文
- wrap(String) - Method in enum class cloud.opencode.base.log.spi.AnsiColor
-
Wraps the given text with this color code and a trailing RESET.
- wrap(Callable) - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Wraps a Callable to propagate log context 包装 Callable 以传播日志上下文
- wrap(CompletableFuture) - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Wraps a CompletableFuture to propagate log context to subsequent stages 包装 CompletableFuture 以传播日志上下文到后续阶段
- wrap(Function) - Static method in class cloud.opencode.base.log.enhance.VirtualThreadContext
-
Wraps a Function to propagate log context 包装 Function 以传播日志上下文
- wrapRunnable(Runnable) - Static method in class cloud.opencode.base.log.spi.DefaultLogProvider
-
Wraps a
Runnableto automatically clear MDC context after execution.
Y
A B C D E F G H I K L M N O P Q R S T U V W YAll Classes and Interfaces|All Packages|Constant Field Values|Serialized Form