one_logger library

Support for doing something awesome.

More dartdocs go here.

Classes

DevelopmentLoggerFilter
Logger
The main logger class. Provides methods for logging messages of different levels.
LoggerFilter
LoggerOptions
LogStyle
LokiOptions
ProductionLoggerFilter

Functions

ansiPrint(dynamic msg, {DateTime? date, Level level = Level.debug, String? service, String? module, DateFormat? dateFormat, LoggerOptions options = defaultLevelOptions, bool shouldPrint = true, PrinterFn printer = defaultLoggerPrinter}) String
defaultLoggerPrinter(dynamic value) → void
textToAnsi(dynamic text, {LogStyle style = const LogStyle(), bool enableAnsi = true}) String

Typedefs

LokiLabel = Map<String, String>
OnLogParams = (String, Level, String?, LokiLabel?)
PrinterFn = void Function(dynamic value)