Default Logger
open class DefaultLogger @JvmOverloads constructor(showThreadInfo: Boolean = true, methodCount: Int = 2, methodOffset: Int = 0) : Logger
默认实现的Logger,既美观又实用。
日志的默认输出格式如下:
┌──────────────────────────────
│ Thread information
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ Method stack history
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ Log message
└──────────────────────────────
Content copied to clipboard
Author
Parameters
show Thread Info
Whether to show thread info or not. Default true
method Count
How many method line to show. Default 2
method Offset
Hides internal method calls up to offset.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Write a log message to its destination. Called for all level-specific methods by default.
Log at priority
an message.
Log at priority
an exception.
Log at priority
an exception and a message.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Log an assert exception.
Log an assert message with optional format args.
Log an assert exception and a message with optional format args.