Notice class

A notice can receive logs and represents a node in the notice tree structure. Typically the root notice is responsible for outputting the logs, while the children take the role of grouping logs together. Each notice must have only one parent, but can have multiple children.

Constructors

Notice.new({NoticeReceiver? parent, List<NoticeOutput> outputs = const [], String? breadcrumb, List<NoticeRegistry> registries = const []})
Creates a new notice.
Notice.childOf(NoticeReceiver? parent, {String? breadcrumb})
Creates a const sub notice that will simply log to the parent notice
const

Properties

The breadcrumb that will be added to the logs to better identify the source of the log.
final
hashCode int
The hash code for this object.
no setterinherited
outputs → IList<NoticeOutput>
The outputs that will be used to output the logs.
final
parent → NoticeReceiver?
The parent notice, if any.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

debug(Object? message, {Object? error, StackTrace? stackTrace}) → void
Logs a debug level record to the notice tree.
inherited
error(Object? message, {Object? error, StackTrace? stackTrace}) → void
Logs a error level record to the notice tree.
inherited
fatal(Object? message, {Object? error, StackTrace? stackTrace}) → void
Logs a fatal level record to the notice tree.
inherited
info(Object? message, {Object? error, StackTrace? stackTrace}) → void
Logs a info level record to the notice tree.
inherited
log(NoticeLevel level, Object? message, {Object? error, StackTrace? stackTrace}) → void
Logs a record to the notice tree.
inherited
logInternal({required NoticeLevel level, required Object? message, required Object? error, required StackTrace? stackTrace}) → dynamic
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRecord(NoticeRecord record) → void
Called when a notice is recorded.
toString() String
A string representation of this object.
inherited
trace(Object? message, {Object? error, StackTrace? stackTrace}) → void
Logs a trace level record to the notice tree.
inherited
warn(Object? message, {Object? error, StackTrace? stackTrace}) → void
Logs a warn level record to the notice tree.
inherited

Operators

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