CodenicLogger class

Creates a logger that appropriately displays information from a MessageLog.

Constructors

CodenicLogger({LogFilter? filter, LogOutput? output, Level? level, MessageLogPrinter? printer})
Creates a logger that appropriately displays information from a MessageLog.

Properties

filter LogFilter?
See LogFilter.
final
hashCode int
The hash code for this object.
no setterinherited
level Level?
See Level.
final
output LogOutput?
See LogOutput.
final
printer MessageLogPrinter
See MessageLogPrinter.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String?
Associates the log messages with this user ID.
getter/setter pair

Methods

close() → void
Closes the logger releases all resources.
copyWith({MessageLogPrinter? printer, LogFilter? filter, LogOutput? output, Level? level}) CodenicLogger
Creates a new CodenicLogger with the value replaced by the non-null.
debug(MessageLog messageLog, {dynamic error, StackTrace? stackTrace}) → void
Logs a message at debug level.
error(MessageLog messageLog, {dynamic error, StackTrace? stackTrace}) → void
Logs a message at error level.
fatal(MessageLog messageLog, {dynamic error, StackTrace? stackTrace}) → void
Logs a message at fatal level.
info(MessageLog messageLog, {dynamic error, StackTrace? stackTrace}) → void
Logs a message at info level.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
trace(MessageLog messageLog, {dynamic error, StackTrace? stackTrace}) → void
Logs a message at trace level.
warn(MessageLog messageLog, {dynamic error, StackTrace? stackTrace}) → void
Logs a message at warn level.

Operators

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