WebAppender class

Takes advantage of console logging methods to improve logging filterability. The levels don't map exactly but are close enough.

Levels are mapped as follows:

Level.CONFIG => console.log Level.FINEST => console.log Level.FINER => console.log Level.FINE => console.log Level.INFO => console.info Level.WARNING => console.warning Level.SEVERE => console.error Level.SHOUT => console.error

Inheritance

Constructors

WebAppender(Formatter formatter, Console console)
WebAppender.usingConsole(Formatter formatter, Console console)
Constructor that creates appender which formats the messages using the Formatter and outputs to the supplied Console.
factory
WebAppender.webConsole(Formatter formatter)
Constructor that creates appender which formats the messages using the Formatter and outputs to Window.console
factory

Properties

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

Methods

append(LogRecord record, Formatter formatter) → void
Each appender should implement this method to perform custom log output.
override
attachLogger(Logger logger) → void
Attaches a logger to this appender
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stop() → void
Terminate this Appender and cancel all logging subscriptions.
inherited
toString() String
A string representation of this object.
inherited

Operators

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