logger library

Logger

To use, import package:tool_logger/logger.dart.

Classes

AnsiPen
Pen attributes for foreground and background colors.
BaseTalkerFilter
BlocChangeLog
Bloc state changed log model
BlocCloseLog
Bloc closed log model
BlocCreateLog
Bloc created log model
BlocEventLog
Bloc event log model
BlocStateLog
Bloc state transition log model
ColoredLoggerFormatter
This formatter makes messages colorful if this setting is enabled in the settings TalkerLoggerSettings
CombinedObserver
ConsoleUtils
Class that contains methods for working with console output
CustomSettingsGroup
CustomSettingsItem<T>
CustomSettingsItemBool
DefaultTalkerHistory
Base implementation of TalkerHistory to save the history locally
ExtendedLoggerFormatter
This formatter makes messages colorful if this setting is enabled in the settings TalkerLoggerSettings
FileOutput
Writes the log output to a file.
LogDetails
A class for transporting data about an log message
Logger
LoggerFilter
Abstract filter for messages logging.
LoggerFormatter
Responsible for formatting message before output
LoggerImpl
LogLevelFilter
This filter checks that current message level is above certain LogLevel setting in TalkerLoggerSettings
SnackbarContent
Talker
Talker - advanced exception handling and logging for dart/flutter applications
TalkerBlocLoggerSettings
TalkerBlocObserver
BLoC logger on Talker base
TalkerBuilder
TalkerData
Base Talker Data transfer object Objects of this type are passed through handlers observer and stream
TalkerDataCard
TalkerDateTimeFormatter
Utility class for DateTime formatting.
TalkerDioLogger
Dio http client logger on Talker base
TalkerDioLoggerSettings
TalkerDioLogger settings and customization
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
TalkerListener
It should be used for app functionality like showing SnackBar or Dialog about error or exception
TalkerLog
Base implementation of TalkerData to create Logs
TalkerLogger
TalkerLoggerSettings
Logger customization settings
TalkerObserver
Base observer class for to create your own observers
TalkerRouteLog
TalkerRouteObserver
Logging NavigatorObserver working on Talker base This observer displays which routes were opened and closed in the application
TalkerScreen
UI view for output of all Talker logs and errors
TalkerScreenTheme
Configuring the UI of TalkerScreen
TalkerSettings
This class used for setup Talker configuration
TalkerSettingsBottomSheet
TalkerView
TalkerWrapper
Widget to wrap an screen or the entire application in Talker data listening
TalkerWrapperOptions
Options for TalkerWrapper

Enums

LogLevel
Level of logs to segmentation and control logging output
TalkerLogType
TimeFormat
Enum representing different time formats.

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
logger Logger
no setter
logLevelPriorityList List<LogLevel>
List of levels sorted by priority
final
talker Talker
no setter

Functions

consoleChunksOutput(String message) → dynamic
It sends everything to the system console.
createTalkerSetting({bool production = true}) TalkerSettings
enableWriteToFileLogsOutput(Talker talker, {required Stream<File?> fileStream, bool overrideExisting = true}) StreamSubscription
initLogger({Logger logger = const LoggerImpl()}) → void
initTalker({bool production = false, TalkerObserver? observer}) Talker
resetBackground() String
resetForeground() String
runTalkerZonedGuarded<R>(Talker talker, R body(), void onError(Object error, StackTrace stack), {Map<Object?, Object?>? zoneValues, ZoneSpecification? zoneSpecification, bool catchFlutterErrors = true}) Future<R?>
setupErrorHooks(Talker talker, {bool catchFlutterErrors = true}) Future

Typedefs

LogColors = Map<String, Color>
LoggerOutput = void Function(String message)
TalkerDataBuilder = Widget Function(BuildContext context, TalkerData data)
Signature for build custom TalkerData widgets
TalkerErrorBuilder = Widget Function(BuildContext context, TalkerError data)
Signature for build custom TalkerError messages in showing Snackbar or another widgets
TalkerExceptionBuilder = Widget Function(BuildContext context, TalkerException data)
Signature for build custom TalkerException messages in showing Snackbar or another widgets
TalkerFilter = _Filter<TalkerData>
TalkerWidgetBuilder = Widget Function(BuildContext context, List<TalkerData> data)

Exceptions / Errors

NonFatalException