sprint library
Printing library that allows for simple printing of messages using log levels and modes.
Classes
- Sprint
- Printing API that allows for simple printing of messages.
Constants
- defaultLogLevel → const Level
- Defines the default log level of messages.
- isWeb → const bool
- Determines whether the program is running in a JavaScript environment.
Properties
-
colorFunctionByLevel
→ Map<
Level, ColorFunction> -
Maps logging levels to the methods that colour them.
final
Typedefs
- ColorFunction = String Function(String message)
- The signature of a function responsible for colouring a message.
- FormattingFunction = String Function(String text)
- The signature of a function responsible for formatting text into a log message.
- LogFunction = void Function(dynamic message, {Level level})
- The signature of a function responsible for logging a message.