LogConsoleHandler class

Shows log-messages on the Console

Usage: void configLogging() { Logger.root.level = Level.INFO; Logger.root.onRecord.listen(new LogConsoleHandler()); }

Inheritance

Constructors

LogConsoleHandler({TransformLogRecord transformer = transformerDefault})

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

call(LogRecord logRecord) → void
inherited
makeGroup(LogRecord logRecord) → void
Called after console output is done (via makeGroup - can be overwritten)
inherited
makeObjectGroup(String groupName, LogRecord logRecord) → void
groupName is for example GROUP_OBJECT
override
makeStackTraceGroup(String groupName, LogRecord logRecord) → void
groupName is for example GROUP_STACK_TRACE
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toConsole(LogRecord logRecord, {TransformLogRecord? transformer}) → void
More infos about console output: https://developer.chrome.com/devtools/docs/console
override
toString() String
A string representation of this object.
inherited

Operators

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