LogRecord class

Constructors

LogRecord(Level level, Object message, String? tag, LoggerStackTrace contextInfo, {Object? error, StackTrace? stackTrace, Object? object, String? loggerName, String? dateFormat})

Properties

contextInfo → LoggerStackTrace
final
dateFormat String?
The dateformat for the time the record was created.
final
error Object?
Associated error (if any) when recording errors messages.
final
hashCode int
The hash code for this object.
no setterinherited
level Level
The log level
final
loggerName String?
Logger where this record is stored.
getter/setter pair
message Object
The message
final
object Object?
Non-string message passed to Logger.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
Associated stackTrace (if any) when recording errors messages.
final
tag String?
A unique tag, that can be used to connect log entries to a certain event in an application.
final
time DateTime
Time when this record was created.
getter/setter pair

Methods

functionNameAndLine() String
getFormattedTime() String
Returns the log time in the format yyyy-MM-dd HH:mm:ss
inFileLocation() String?
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