Log class abstract

Log class

logger has null tag by default

Log class is responsible for managing tags, adding time and id info to events, and redirecting events to outputs.

Note: Log class itself is also a LogOutput. But it provides more utilities over a bare LogOutput. Like log, tagged or abbreviated methods like i.

Implemented types
Available Extensions

Constructors

Log({String? tag, required LogId id, required LogOutput child})
standard logger
const
factory
Log.noop({String? tag})
noop implementation
const
factory
Log.redirect({bool enabled, required Log child})
redirect implementation
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String?
get this logger's tag
no setter

Methods

close() → void
close
override
init() → void
initialized logger
override
log(LogLevel level, String message, {Object? error, StackTrace? stackTrace, Object? extra}) → void
log
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tagged(String? tag) Log
tagged logger
toString() String
A string representation of this object.
inherited
write(LogEvent event) → void
write events
override

Operators

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