BrLogRecord class final

Representa um evento de log imutável.

Criado internamente pelo BrLogger e passado para o pipeline filter → printer → output.

Constructors

BrLogRecord({required BrLogLevel level, required Object? message, required String tag, required DateTime time, Object? error, StackTrace? stackTrace})
const

Properties

error Object?
Erro/exceção associado (opcional).
final
hashCode int
The hash code for this object.
no setterinherited
level BrLogLevel
Severidade do evento.
final
message Object?
Mensagem principal. Pode ser uma String ou um objeto qualquer — o printer chama .toString() na hora de formatar.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
Stack trace associado ao error (opcional).
final
tag String
Tag do logger que gerou o evento (normalmente o nome do módulo/classe).
final
time DateTime
Instante em que o evento foi criado.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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