infobits library

Classes

Benchmark
Global benchmark functions for convenience
BenchmarkResult
Represents a single benchmark measurement
BenchmarkStatistics
Statistics for a group of benchmark results
BenchmarkTimer
Active benchmark timer
Represents a single breadcrumb entry
Manages breadcrumbs for debugging and error tracking
Infobits
Main Infobits class that provides unified initialization and error handling
InfobitsAnalytics
InfobitsAnalyticsObserver
A NavigatorObserver that sends events to Infobits Analytics when the currently active ModalRoute changes.
InfobitsBenchmark
Main benchmark manager class
InfobitsLifecycleObserver
InfobitsLogging
The main class for handling logs in Logging.
Logger
LoggingConsoleLogOutput
Default implementation of LoggingLogOutput.
LoggingDevelopmentLogFilter
Prints all logs with level >= Logger.level while in development mode (eg when asserts are evaluated, Flutter calls this debug mode).
LoggingFileLogOutput
LoggingLogEvent
Log event contains all the information of a log event
LoggingLogFilter
An abstract filter of log messages.
LoggingLogOutput
Log output receives a LoggingOutputLog from LogPrinter and sends it to the desired destination.
LoggingLogPrinter
An abstract handler of log events.
LoggingMemoryOutput
Buffers OutputEvents.
LoggingOptions
The options for Logging
LoggingPrettyLogPrinter
Default implementation of LoggingLogPrinter.
LoggingProductionLogFilter
Prints all logs with level >= Logger.level even in production.
LoggingSimpleLogPrinter
Outputs simple log messages:
LoggingStreamLogOutput
MultiOutput
Logs simultaneously to multiple LoggingLogOutput outputs.

Enums

Breadcrumb severity levels
LoggingLogLevel
The different log event levels

Functions

defaultNameExtractor(RouteSettings settings) → String?
defaultRouteFilter(Route? route) → bool
runWithInfobits({required Widget app, String? apiKey, String? domain, String? namespace, bool analyticsEnabled = true, bool loggingEnabled = true, bool? debug, LoggingOptions? loggingOptions, InfobitsRegion? analyticsRegion, String? analyticsIngestUrl, String? loggingIngestUrl, void onLog(LoggingLogEvent logEvent)?, Duration sendInterval = const Duration(milliseconds: 100), int maxLogCount = 100, int includedContextLogs = 0, void onError(Object error, StackTrace stack)?, bool ensureInitialized = true}) → void
Convenience function to run an app with Infobits initialization and error handling

Typedefs

RouteFilter = bool Function(Route? route)
RouteFilter allows to filter out routes that should not be tracked.
ScreenNameExtractor = String? Function(RouteSettings settings)
Signature for a function that extracts a screen name from RouteSettings.