DebugTree class

Debug log tree. Tag generation included

Inheritance

Constructors

DebugTree({int printTimeType = timeClockType, List<String> logLevels = defaultLevels, bool useColors = false})
Creates DebugTree with defaults or with defined printTimeType, logLevels, useColors
DebugTree.elapsed({List<String> logLevels = defaultLevels, bool useColors = false})
Creates elapsed time type Debug log tree with optional logLevels and useColors
factory

Properties

colorizeMap Map<String, ColorizeStyle>
Colors style map, with key as log level and value as ColorizeStyle Visible on supported consoles.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logLevels List<String>
Log levels processed by this DebugTree
getter/setter pair
printTimeType int
Type of time to print.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLevels() List<String>
Gets levels of logging serviced by this LogTree
override
log(String level, String message, {String? tag, dynamic ex, StackTrace? stacktrace}) → void
Logs message with level and optional tag, ex (exception, stacktrace
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printLog(String logLine, {String? level}) → void
Method to overload printing to output stream the formatted logLine Adds handing of time
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultLevels → const List<String>
Default levels for logging a debug.
timeClockType → const int
Actual clock time type tracking for logging
timeElapsedType → const int
Elapsed time type tracking for logging