roggle library

Classes

AnsiColor
This class handles colorizing of terminal output.
ConsoleOutput
Default implementation of LogOutput.
CrashlyticsErrorEvent
An event of crashlytics error.
CrashlyticsLogEvent
An event of crashlytics log.
CrashlyticsPrinter
LogPrinter for crashlytics.
DevelopmentFilter
Prints all logs with level >= Logger.level while in development mode (eg when asserts are evaluated, Flutter calls this debug mode).
DumpOutput
Do nothing
FileOutput
HybridPrinter
A decorator for a LogPrinter that allows for the composition of different printers to handle different log messages. Provide it's constructor with a base printer, but include named parameters for any levels that have a different printer:
LogEvent
LogFilter
An abstract filter of log messages.
LogfmtPrinter
Outputs a logfmt message:
LogOutput
Log output receives a OutputEvent from LogPrinter and sends it to the desired destination.
LogPrinter
An abstract handler of log events.
MemoryOutput
Buffers OutputEvents.
MultiOutput
Logs simultaneously to multiple LogOutput outputs.
OutputEvent
PrefixPrinter
A decorator for a LogPrinter that allows for the prepending of every line in the log output with a string for the level of that log. For example:
PrettyPrinter
Default implementation of LogPrinter.
ProductionFilter
Prints all logs with level >= Logger.level even in production.
Roggle
Use instances of roggle to send log messages to the LogPrinter.
SimplePrinter
Outputs simple log messages:
SinglePrettyPrinter
Default implementation of LogPrinter.
StreamOutput

Enums

Level
Levels to control logging output. Logging can be enabled to include all levels above certain Level.

Typedefs

CrashlyticsErrorCallback = void Function(CrashlyticsErrorEvent event)
Function to call when an error occurs
CrashlyticsLogCallback = void Function(CrashlyticsLogEvent event)
Function to call when printing a log message
LogCallback = void Function(LogEvent event)
OutputCallback = void Function(OutputEvent event)
TimeFormatter = String Function(DateTime now)
Function to format the current time