LoggingBugfenderListener class
A Logger
listener that sends the records to Bugfender.
Constructors
- LoggingBugfenderListener(String appKey, {Uri? apiUri, Uri? baseUri, int? maximumLocalStorageSize, PrintStrategy consolePrintStrategy = const NeverPrintStrategy(), PrintStrategy bugfenderPrintStrategy = const PlainTextPrintStrategy(), bool enableUIEventLogging = true, bool enableCrashReporting = true, bool enableAndroidLogcatLogging = true})
- Creates a LoggingBugfenderListener. You probably want to call listen just after creating it.
Properties
- bugfenderPrintStrategy → PrintStrategy
-
Defines if and how logs should be created and sent to Bugfender.
final
- consolePrintStrategy → PrintStrategy
-
Defines if and how logs should be created and printed to the console.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
listen(
Logger logger) → StreamSubscription< LogRecord> -
Starts listening to logs emitted by
logger
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeCustomData(
String key) → Future< void> -
Removes the custom data with a specified
key
. -
setCustomData(
String key, dynamic value) → Future< void> -
Sets the custom data with a specified
key
for Bugfender on this device. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited