FlutterLoggingManager class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasTree
→ bool
-
no setterinherited
-
logger
→ Logger
-
A logger that is used with the logging tree attached in this manager.
Records recieved from this logger and its childrens are sent to the
logging tree for further processing (or just printing, attached logging tree
is responsible for processing).
finalinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addLogRecord(LogRecord record)
→ void
-
inherited
-
dispose()
→ void
-
inherited
-
getLogger(String name)
→ Logger
-
inherited
-
listenErrorsInIsolate(Isolate context)
→ void
-
inherited
-
listenErrorsWithCurrentIsolate()
→ void
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onFlutterError(FlutterErrorDetails details)
→ void
-
Creates a log from FlutterErrorDetails.
-
onRecordError(Object? error, StackTrace? stackTrace, {String? reason, bool fatal = false})
→ Future<void>
-
Sends a log to the current logger managed by this manager.
inherited
-
plantTree(LoggingTree tree)
→ void
-
Attach a logging mechanism.
inherited
-
removeTree()
→ void
-
De-attach a logging mechanism.
inherited
-
runFlutterInZoneGuardedWithLogging(FutureCallback onRun, {void onError(Object, StackTrace)?, Map<Object?, Object?>? zoneValues, ZoneSpecification? zoneSpecification})
→ Future<void>?
-
-
runZoneGuardedWithLogging(FutureCallback onRun, {void onError(Object, StackTrace)?, Map<Object?, Object?>? zoneValues, ZoneSpecification? zoneSpecification})
→ Future<void>?
-
This can be used to catch errors in a zone.
ometimes, errors are instead caught by Zones. A common case where relying
on Flutter to catch errors would not be enough is when an exception
happens inside the onPressed handler of a button.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited