PreferredPrinter class
This is an implementation of LogPrinter
, which is preferred by AoiHosizora :)
Format:
[DBG] [00:05:56] xxx
xxx
[Error] xxx
xxx
[Trace] xxx
xxx
xxx
Constructors
Properties
- errorMaxLines → int
-
The max lines count of error message.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- printError → bool
-
The flag to print error message.
final
- printTrace → bool
-
The flag to print stack trace.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeOnly → bool
-
The flag to print time rather than date-time.
final
- traceMaxLines → int
-
The max lines count of stack trace.
final
Methods
-
destroy(
) → void -
inherited
-
init(
) → void -
inherited
-
log(
LogEvent event) → List< String> -
Is called every time a new
LogEvent
is sent and handles printing or storing the message. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited