-
public class LoggerConfig.BuilderLoggerConfig 构建器
Builder for LoggerConfig
-
-
Field Summary
Fields Modifier and Type Field Description private LogFormatlogFormatprivate IntegermethodOffset
-
Constructor Summary
Constructors Constructor Description LoggerConfig.Builder()
-
Method Summary
Modifier and Type Method Description final LogFormatgetLogFormat()日志显示格式,默认:LogFormat.PRETTYLog display format, defaults to LogFormat.PRETTY for better readability. final IntegergetMethodOffset()堆栈跟踪偏移量Stack trace offset (hides internal method calls) LoggerConfig.BuildersetLogFormat(LogFormat logFormat)设置日志显示格式Set log display format. LoggerConfig.BuildersetMethodOffset(Integer methodOffset)设置堆栈跟踪偏移量Set stack trace offset. LoggerConfigbuild()构建 LoggerConfig -
-
Method Detail
-
getLogFormat
final LogFormat getLogFormat()
日志显示格式,默认:LogFormat.PRETTY
Log display format, defaults to LogFormat.PRETTY for better readability.
-
getMethodOffset
final Integer getMethodOffset()
堆栈跟踪偏移量
Stack trace offset (hides internal method calls)
-
setLogFormat
LoggerConfig.Builder setLogFormat(LogFormat logFormat)
设置日志显示格式
Set log display format.
- Parameters:
logFormat- Log display format, defaults to LogFormat.PRETTY for better readability
-
setMethodOffset
LoggerConfig.Builder setMethodOffset(Integer methodOffset)
设置堆栈跟踪偏移量
Set stack trace offset.
- Parameters:
methodOffset- Stack trace offset (hides internal method calls)
-
build
LoggerConfig build()
构建 LoggerConfig
-
-
-
-