FlushLogger class
Internal Flutter logger for flush operations This logs flush operations without creating Obsly events
Constructors
- FlushLogger()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Checks if logs are empty
no setter
- lastLog → FlushLogEntry?
-
Gets the most recent log
no setter
- logsCount → int
-
Gets logs count
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
dynamic listener(FlushLogEntry)) → void - Adds a listener for real-time flush log updates
-
clearLogs(
) → void - Clears all logs
-
getAllLogs(
) → List< FlushLogEntry> - Gets all flush logs (newest first)
-
getAvailableTriggers(
) → List< String> - Gets available triggers from logs
-
getFilteredLogs(
{String? trigger, bool? successful, bool? forced, bool? sendActive, DateTime? since}) → List< FlushLogEntry> - Gets logs filtered by criteria
-
getStatistics(
) → Map< String, dynamic> - Gets statistics about flush operations
-
logFlushComplete(
{required String trigger, required bool forced, required int eventCount, required bool sendActive, required bool successful, String? errorMessage}) → void - Logs a flush operation completion
-
logFlushSkipped(
{required String trigger, required bool forced, required int eventCount, required bool sendActive, required String reason}) → void - Logs when flush is skipped (e.g., debug mode disabled)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
dynamic listener(FlushLogEntry)) → void - Removes a listener
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → FlushLogger
-
no setter