AnalyticsTransport class

Sends log events to Firebase Analytics.

Each event name is derived from [config'name'] (default 'revere'), with {context} and {level} placeholders replaced at runtime.

config keys: format (String), name (String), callOptions.

Constructors

AnalyticsTransport({LogLevel level = LogLevel.info, Map<String, dynamic> config = const {}})
Creates an AnalyticsTransport.

Properties

callOptions → AnalyticsCallOptions?
Optional AnalyticsCallOptions forwarded to Firebase Analytics.
final
config Map<String, dynamic>
Arbitrary key/value options passed to the transport at construction time.
finalinherited
format String
Log message template. Supports {level}, {message}, {timestamp}, {context}, {error}, {stackTrace} placeholders.
final
hashCode int
The hash code for this object.
no setterinherited
level → LogLevel
Minimum severity level this transport will handle.
finalinherited
name String
Analytics event name template. Supports {context} and {level}. Defaults to 'revere'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispatchEvent(String name, Map<String, dynamic> parameters, AnalyticsCallOptions? callOptions) Future<void>
emitLog(LogEvent event) Future<void>
Performs the actual delivery of event to the transport's destination.
log(LogEvent event) Future<void>
Delivers event to the destination if event.level >= this.level.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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