BaseBuilder

DefaultLoggerConfig 构建器基类,支持泛型自引用以保证子类链式调用返回正确类型

Base builder for DefaultLoggerConfig with self-referential generic for fluent subclass chaining.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

日志显示格式,默认:LogFormat.PRETTY

Link copied to clipboard

要显示的调用栈方法行数,默认:2

Link copied to clipboard

堆栈跟踪偏移量

Link copied to clipboard

是否显示线程信息,默认:true

Functions

Link copied to clipboard
open override fun build(): DefaultLoggerConfig
Link copied to clipboard
fun setLogFormat(logFormat: LogFormat): SELF

设置日志显示格式

Link copied to clipboard
fun setMethodCount(methodCount: Int): SELF

设置要显示的调用栈方法行数

Link copied to clipboard
fun setMethodOffset(methodOffset: Int): SELF

设置堆栈跟踪偏移量

Link copied to clipboard
fun setShowThreadInfo(showThreadInfo: Boolean): SELF

设置是否显示线程信息