loggy library

Classes

AnsiColor
This class handles colorizing of terminal output.
BlacklistFilter
Black list filter, opposite of WhitelistFilter
CustomLevelFilter
Define custom levels for logging custom types, LoggyTypes added here can define higher level for logging.
DefaultPrinter
GlobalLoggy
Separate class for Global loggy.
Loggy<T extends LoggyType>
Use a Loggy to log debug messages.
LoggyFilter
Filter for loggy, everytime new log is added, Loggy will go thorough all the filters and if any of them is false, that log will not be displayed.
LoggyPrinter
Printer used to show logs, this can be easily swapped or replaced
LoggyType
Different logger types must be mixins and they have to implement LoggyType This will make sure that each mixin is using it's own Loggy and that will be useful when dictating what we want to show
LogLevel
Level class. Name is used printed out to console, and priority is used as level to find out severity of the log.
LogOptions
Choose what and how it gets logged
LogRecord
This is sent to the LoggyPrinter and there printer can choose what and how to show it
PrettyPrinter
Format log and add emoji to represent the color.
WhitelistFilter
White list filter will log only Type of loggy that is passed. You should pass only Type that is from LoggyType otherwise no effect will take place.

Extensions

LoggySpawner on LoggyType

Constants

defaultLevel → const LogOptions
The default LogLevel.

Properties

hierarchicalLoggingEnabled bool
Whether to allow fine-grain logging and configuration of loggers in a hierarchy.
getter/setter pair
logDebug → void Function(dynamic message, [Object? error, StackTrace? stackTrace])
final
logError → void Function(dynamic message, [Object? error, StackTrace? stackTrace])
final
logInfo → void Function(dynamic message, [Object? error, StackTrace? stackTrace])
final
logWarning → void Function(dynamic message, [Object? error, StackTrace? stackTrace])
final