logger library

Small, easy to use and extensible logger which prints beautiful logs.

Classes

ConsoleOutput
Default implementation of LogOutput. [...]
DebugFilter
Default implementation of LogFilter. [...]
FileOutput
Writes the log output to a file.
LogEvent
LogFilter
An abstract filter of log messages. [...]
Logger
Use instances of logger to send log messages to the LogPrinter.
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.
OutputEvent
PrettyPrinter
Default implementation of LogPrinter. [...]
ProductionFilter
Prints all logs with level >= Logger.level even in production.
SimplePrinter
Outputs simple log messages: [...]

Enums

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

Typedefs

LogCallback(LogEvent event) → void
OutputCallback(OutputEvent event) → void