DefaultLogger<Key extends Object, Options> class
Default Logger's implementation, simply print to the console.
- Implemented types
-
- Logger<
Key, Options>
- Logger<
- Implementers
Constructors
- DefaultLogger({String tag = defaultTag, bool trimValueOutput = false})
-
Construct a DefaultLogger.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag → String
-
Log tag.
final
- trimValueOutput → bool
-
If trimValueOutput is true, value text will be trimmed to max maxValueTextLength characters.
final
Methods
-
keyAndValueToString(
KeyAndValue< Key, Object?> keyAndValue) → String -
log(
LoggerEvent< Key, Options> event) → void -
Logs event.
override
-
logOther(
LoggerEvent< Key, Options> event) → void - Logs other events.
-
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
Static Methods
-
concatOptionsIfNotNull(
Object? options, [String separator = ',']) → String
Constants
- defaultTag → const String
- downArrow → const String
- leftArrow → const String
- maxValueTextLength → const int
- rightArrow → const String