logging_appenders library

Basic logging appenders for darts logging framework.

The simplest use case is using the PrintAppender.setupLogging to create a logger which logs to stdout.

Classes

AsyncInitializingLogHandler<T extends BaseLogAppender>
A wrapper LogHandler which will buffer log records until the future provided by the builder method has resolved.
BaseLogAppender
Base class for log appenders to handle subscriptions to specific loggers as well as disposeing them.
BlockFormatter
Formatter which can be easily configured using a function block.
ColorFormatter
dart:io logger which adds ansi escape characters to set the color of the output depending on log level.
DefaultLogRecordFormatter
Opinionated log formatter which will give a decent format of LogRecord and adds stack trace and error messages if they are available.
GelfHttpAppender
Graylog Http appender https://go2docs.graylog.org/5-0/getting_in_log_data/ingest_gelf.html?tocpath=Getting%20in%20Logs%7CLog%20Sources%7CGELF%7C_____1 BULK receiving must be enabled. (enable_bulk_receiving)
LoggingAppenders
Some global configuration for logging_appenders package.
LogRecordFormatter
Base class for formatters which are responsible for converting LogRecords to strings.
LogzIoApiAppender
Appender which sends all logs to https://logz.io/ Uses
LokiApiAppender
Appender used to push logs to Loki.
PrintAppender
Appender which outputs all log records using the given formatter to stdout using print().
RotatingFileAppender
A file appender which will rotate the log file once it reaches rotateAtSizeBytes bytes. Will keep keepRotateCount number of files. If the baseFilePath cannot be calculated synchronously you can use a AsyncInitializingLogHandler to buffer log messages until the baseFilePath is ready.