DiagnosticEventContext class
Base class for information about the context in which a DiagnosticEvent was submitted.
Subclasses can add additional context information.
- Implementers
Constructors
- DiagnosticEventContext({required String serverId, required String serverRunMode, required String serverName})
-
Creates a new DiagnosticEventContext.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverId → String
-
The id of the Serverpod server that submitted the event.
final
- serverName → String
-
The name of the individual server that submitted the event.
This is the empty string if the event is not associated with a specific server.
final
- serverRunMode → String
-
The run mode of the Serverpodserver that submitted the event.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this context to a Json map representation, e.g. for logging or tags.
-
toString(
) → String -
Returns a string representation of this context.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited