LogEntry class

A structured log record that flows through the printer pipeline.

Native calls construct this hyper_logger-owned type directly. The explicit LogEntry.fromLogRecord adapter exposes logging.LogRecord for inbound package:logging integrations; the printer pipeline uses LogEntry after that conversion.

Constructors

LogEntry({required LogLevel level, required String message, Object? object, required String loggerName, required DateTime time, Object? error, StackTrace? stackTrace, String? tag})
const
LogEntry.fromLogRecord(LogRecord record)
Creates a LogEntry from a logging.LogRecord.
factory

Properties

error Object?
The error object attached to this record, if any.
final
hashCode int
The hash code for this object.
no setterinherited
level LogLevel
The severity level of this record.
final
loggerName String
The canonical logger name used by every built-in printer (typically the stringified type parameter from the log call).
final
message String
The canonical human-readable message used by every built-in printer.
final
object Object?
The structured payload object. When the log call originated from HyperLogger, this is a LogMessage instance.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace attached to this record, if any.
final
tag String?
The scope tag from LoggerOptions.tag, if a ScopedLogger with a non-null tag emitted this record.
final
time DateTime
When this record was created.
final

Methods

copyWith({LogLevel? level, String? message, Object? object()?, String? loggerName, DateTime? time, Object? error()?, StackTrace? stackTrace()?, String? tag()?}) LogEntry
Returns a transformed entry while preserving every omitted field.
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