easy_print library
Support for doing something awesome.
More dartdocs go here.
Classes
- AnsiPen
- Pen attributes for foreground and background colors.
- BaseTalkerFilter
- ColoredLoggerFormatter
- This formatter makes messages colorful if this setting is enabled in the settings TalkerLoggerSettings
- ConsoleUtils
- Class that contains methods for working with console output
- DefaultTalkerHistory
- Base implementation of TalkerHistory to save the history locally
- EasyPrint
- This handles the operations that the package can do with StackTraces.
- ExtendedLoggerFormatter
- This formatter makes messages colorful if this setting is enabled in the settings TalkerLoggerSettings
- LogDetails
- A class for transporting data about an log message
- LoggerFilter
- Abstract filter for messages logging.
- LoggerFormatter
- Responsible for formatting message before output
- LogLevelFilter
- This filter checks that current message level is above certain LogLevel setting in TalkerLoggerSettings
- PrintZone
- A PrintZone is a specification on how to handle print calls. It's intended to define a custom print behavior.
- Talker
- Talker - advanced exception handling and logging for dart/flutter applications
- TalkerData
- Base Talker Data transfer object Objects of this type are passed through handlers observer and stream
- TalkerDateTimeFormatter
- Utility class for DateTime formatting.
- TalkerError
- Base implementation of TalkerData to handle ONLY Errors
- TalkerErrorHandler
- TalkerException
-
Base implementation of TalkerData
to handle ONLY
Exceptionss - TalkerHistory
- Base class for create your own implementation of history
- TalkerLog
- Base implementation of TalkerData to create Logs
- TalkerLogger
- TalkerLoggerSettings
- Logger customization settings
- TalkerObserver
- Base observer class for to create your own observers
- TalkerSettings
- This class used for setup Talker configuration
Enums
- LogLevel
- Level of logs to segmentation and control logging output
- TalkerLogType
- TimeFormat
- Enum representing different time formats.
Extensions
- FieldsToDisplay on TalkerData
- Extension to get display text of TalkerData fields
-
TalkerDataInterfaceListExt
on List<
TalkerData> -
TalkerIterableLogTypeModifier
on Iterable<
TalkerLogType> - TalkerLogTypeExt on TalkerLogType
Constants
- ansi_default → const String
- ansi_esc → const String
- ansiDefault → const String
- Reset all colors and options for current SGRs to terminal defaults.
- ansiEscape → const String
- ANSI Control Sequence Introducer, signals the terminal for new settings.
- ansiResetBackground → const String
- Ansi codes that default the terminal's background color without altering the foreground, when printed.
- ansiResetForeground → const String
- Ansi codes that default the terminal's foreground color without altering the background, when printed.
Properties
- ansiColorDisabled ↔ bool
-
Globally enable or disable AnsiPen settings.
getter/setter pair
- color_disabled ↔ bool
-
getter/setter pair
-
latestCallMetadata
↔ List<
CallMetadata> -
dirty hack. Ignore this.
getter/setter pair
-
logLevelPriorityList
→ List<
LogLevel> -
List of levels sorted by priority
final
Functions
-
resetBackground(
) → String -
resetForeground(
) → String
Typedefs
- AnsiCreator = AnsiPen Function({required bool isBold})
- A function that returns instance of AnsiPen for colored outputs
- CallMetadataParser = String? Function(CallMetadata? callMetadata)
-
A function that gets data from the
CallMetadataprovided -
FutureOrReturningFn<
R> = FutureOr< R> Function() - A function with the code to be executed in a zone.
- LoggerOutput = void Function(String message)
- PrintingFunction = void Function(String line)
- A PrintingFunction is a function that receives a scoped formatted String with the intention of delegating the printing of it to the user as he wants.
-
TalkerFilter
= _Filter<
TalkerData>