LogConfig class
日志配置对象
Constructors
-
LogConfig({int? methodCount, int? lineLength, bool? printTitle, AnsiColor? color, bool? autoWrap, List<
String> ? excludePaths}) -
const
- LogConfig.blank()
-
干净地输出日志
const
-
LogConfig.defaultConfig({int? methodCount = isWeb ? null : 2, int? lineLength = isWeb ? null : 120, bool? printTitle = !isWeb, bool? autoWrap = true, List<
String> ? excludePaths = const ['package:element_dart/src/log/']}) -
默认日志配置对象
const
Properties
- autoWrap → bool?
-
打印可迭代集合对象时是否自动换行
final
- bottomBorder → String
-
no setter
- color → AnsiColor?
-
自定义日志终端颜色
final
-
excludePaths
→ List<
String> ? -
排除输出堆栈方法的路径
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lineLength → int?
-
日志分隔线长度,如果长度为 0,则不绘制任何线条
final
- methodCount → int?
-
限制方法执行的堆栈数量
final
- middleBorder → String
-
no setter
- printTitle → bool?
-
是否打印标题
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topBorder → String
-
no setter
- verticalLineAtLevel → String
-
no setter
Methods
-
copyWith(
{int? methodCount, int? lineLength, bool? printTitle, AnsiColor? color, bool? autoWrap, List< String> ? excludePaths}) → LogConfig - 克隆新的日志配置
-
formatAndPrint(
int level, dynamic message, {dynamic title}) → void - 以当前配置对象格式化打印日志
-
formatStackTrace(
) → String? - 格式化方法执行堆栈
-
merge(
[LogConfig? other]) → LogConfig - 合并新的日志配置
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stringifyMessage(
dynamic message) → String - 格式化消息内容
-
toEncodableFallback(
dynamic object) → Object -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited