console_log_handler.print library

Classes

Level
Levels to control logging output. Logging can be enabled to include all levels above certain Level. Levels are ordered using an integer value Level.value. The predefined Level constants below are sorted as follows (in descending order): Level.SHOUT, Level.SEVERE, Level.WARNING, Level.INFO, Level.CONFIG, Level.FINE, Level.FINER, Level.FINEST, and Level.ALL. [...]
Logger
Use a Logger to log debug messages. [...]
LogHandler
LogPrintHandler
Shows log-messages on the Console [...]
LogRecord
A log entry representation used to propagate information from Logger to individual handlers.

Constants

defaultLevel → const Level
The default Level.
Level.INFO
JSON → const JsonCodec
Ignore stupid decision against lowercase (static) const
json
PRETTYJSON → const JsonEncoder
prettyPrint for JSON
const JsonEncoder.withIndent(' ')

Properties

hierarchicalLoggingEnabled bool
Whether to allow fine-grain logging and configuration of loggers in a hierarchy. [...]
read / write
recordStackTraceAtLevel Level
Automatically record stack traces for any message of this level or above. [...]
read / write

Functions

configLogging({Level show: Level.INFO, TransformLogRecord transformer: transformerDefault}) → void
Logging-Level-Configuration [...]
logToConsole(LogRecord logRecord, {TransformLogRecord transformer}) → void
Shows your log-messages in the browser console [...]
prettyPrintJson(dynamic json) String
transformerDefault(LogRecord logRecord, {int nameWidth: 20}) String
transformerMessageOnly(LogRecord logRecord) String
transformerSimple(LogRecord logRecord) String

Typedefs

LoggerHandler(LogRecord record) → void
Handler callback to process log entries as they are added to a Logger.
@Deprecated('Will be removed in 1.0.0')
MakeConsoleGroup(LogRecord logRecord) → void
Is called after the console output is done
TransformLogRecord(LogRecord logRecord) String
Converts LogRecord to String