DebugBufferTree class

Logging tree that uses debugPrint which is not skipping log lines printed on Android https://flutter.io/docs/testing/debugging#print-and-debugprint-with-flutter-logs

Inheritance

Constructors

DebugBufferTree({int printTimeType = DebugTree.timeClockType, List<String> logLevels = DebugTree.defaultLevels, int maxLineSize = 800})
Creates Debug Tree compatible with Android.
DebugBufferTree.elapsed({List<String> logLevels = DebugTree.defaultLevels})
Creates elapsed time Debug Tree compatible with Android.
factory

Properties

colorizeMap Map<String, ColorizeStyle>
Colors style map, with key as log level and value as ColorizeStyle Visible on supported consoles.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
logLevels List<String>
Log levels processed by this DebugTree
getter/setter pairinherited
maxLineSize int
Max limit that a log can reach to start dividing it into multiple chunks avoiding them to be cut by android log
final
printTimeType int
Type of time to print.
finalinherited
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
inherited
log(String level, String message, {String? tag, dynamic ex, StackTrace? stacktrace}) → void
Logs message with level and optional tag, ex (exception, stacktrace
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printLog(String logLine, {String? level}) → void
prints log lines breaking them into multiple lines if its too long. src: https://github.com/flutter/flutter/issues/22665#issuecomment-458186456
override
toString() String
A string representation of this object.
inherited

Operators

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