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
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
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