Log class abstract final

Logging access.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Properties

logger → Logger
The logger of the current container.
no setter

Static Methods

channel(String name) → Logger
A named channel (Log::channel('daily')).
debug(String message, [Map<String, Object?>? context]) → void
Logs debugging detail.
error(String message, {Object? error, StackTrace? stackTrace, Map<String, Object?>? context}) → void
Logs a runtime error, with the exception and stack trace when given.
info(String message, [Map<String, Object?>? context]) → void
Logs an interesting event.
notice(String message, [Map<String, Object?>? context]) → void
Logs a normal but significant event.
shareContext(Map<String, Object?> context) → void
Adds context to every log entry of the process (Laravel's Log::shareContext).
spy() → MemoryHandler
Captures records for assertions (Log::spy()); remove with Log.logger.removeHandler(spy).
warning(String message, [Map<String, Object?>? context]) → void
Logs an exceptional occurrence that is not an error.
withContext(Map<String, Object?> context) → void
Adds context to the current request/job (or shares it globally).