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
Constants
- backgroundColorBlack → const int
- backgroundColorBlue → const int
- backgroundColorCyan → const int
- backgroundColorGreen → const int
- backgroundColorMagenta → const int
- backgroundColorRed → const int
- backgroundColorWhite → const int
- backgroundColorYellow → const int
- defaultLevelOptions → const LoggerOptions
- textColorBlack → const int
- textColorBlue → const int
- textColorCyan → const int
- textColorGreen → const int
- textColorMagenta → const int
- textColorRed → const int
- textColorWhite → const int
- textColorYellow → const int
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