LogOptions class
Options for sending a log entry
Constructors
Properties
- autoCaptured → bool
-
Internal: marks whether this log was captured automatically by the SDK
(as opposed to a manual call from app code). Not part of the public API.
final
- clientTimestamp → String?
-
Client timestamp (UTC, RFC 3339). Left null to be stamped at send time;
only set explicitly to preserve a timestamp across a
beforeSendcopy.final - hashCode → int
-
The hash code for this object.
no setterinherited
- level → LogLevel
-
Log level (required)
final
- message → String
-
Log message (required)
final
- metadata → String?
-
Additional metadata como texto (opcional). Los métodos de conveniencia
de SmartGrowLogs (
debug/logDebug/info/warn/error/errorWithException/fatal) aceptanObject? metadatay lo guardan aquí ya convertido aString:nullse mantienenull, unStringse usa tal cual, y cualquier otro objeto se serializa conjsonEncode(es decir, viene en JSON cuando no es texto plano).beforeSendy toMap lo ven siempre en esta forma de texto.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String?
-
Session identifier (optional)
final
- stackTrace → String?
-
Stack trace for errors (optional)
final
- userIdentifier → String?
-
User identifier for tracking (optional)
final
Methods
-
copyWith(
{LogLevel? level, String? message, Object? stackTrace = _unset, Object? metadata = _unset, Object? userIdentifier = _unset, Object? sessionId = _unset, bool? autoCaptured, Object? clientTimestamp = _unset}) → LogOptions - Returns a copy of this LogOptions with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited