CRLoggerInitializer class final

Properties

appInfo Map<String, String>
Information to be displayed in the logger on the App info page
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hiddenFields List<String>
Hides all fields in request|response body and query parameters with keys from list
getter/setter pair
hiddenHeaders List<String>
Hides all headers with keys from list
getter/setter pair
inited bool
Has the logger been initialised
getter/setter pair
isDebugButtonDisplayed bool
no setter
localLogs Stream<LogBean>
Allows you to listen to local logs and, for example, send them to a third-party logging service
no setter
logFileName String
Name of file when sharing logs
getter/setter pair
maxCurrentLogsCount int
no setter
maxDBLogsCount int
no setter
onShareLogsFile ValueChanged<String>?
Callback for sharing logs file on the app's side.
getter/setter pair
printLogs bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useCrLoggerInReleaseBuild bool
no setter
useDB bool
no setter

Methods

addActionButton(String text, VoidCallback action, {String? connectedWidgetId}) → void
Adds an action button to the Actions and values page
addValueNotifier({ValueNotifier? notifier, Widget? widget, String? name, String? connectedWidgetId}) → void
Adds a value notifier to the Actions and values page
cleanAllLogs() → void
Clearing all logs.
cleanDebug() → void
Clearing debug logs.
cleanError() → void
Clearing error logs.
cleanHttpLogs() → void
Clearing http logs.
cleanInfo() → void
Clearing info logs.
createLogsFromJson(Map<String, dynamic> json) Future<void>
Import logs from json map Attention, all logs are cleared before import
dismissDebugButton() → void
Close hover button
getChopperInterceptor() ChopperLogInterceptor
Get Chopper interceptor which should be applied to Chopper instance.
getDioInterceptor({ParserError? parserError}) DioLogInterceptor
Get Dio interceptor which should be applied to Dio instance.
getProxySettings() String?
Get current Charles proxy settings as an "ip:port" string
init({bool printLogs = true, bool useCrLoggerInReleaseBuild = false, bool useDatabase = false, ThemeData? theme, Map<Level, Color>? levelColors, List<String>? hiddenFields, List<String>? hiddenHeaders, String? logFileName, int maxCurrentLogsCount = kDefaultMaxLogsCount, int maxDatabaseLogsCount = kDefaultMaxLogsCount, bool printLogsCompactly = true, Logger? logger}) Future<void>
Logger initialization.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifierListClear() → void
Clears the value notifiers list on the Actions and values page
onHttpClientRequest(HttpClientRequest request, Object? body) → void
Handle request of HttpClient from dart:io library
onHttpClientResponse(HttpClientResponse response, HttpClientRequest request, Object? body) → void
Handle response of HttpClient from dart:io library
onHttpResponse(Response response, Object? body) → void
Handle both request and response from http package
removeActionsById(String connectedWidgetId) → void
Removes all action buttons with the specified identifier
removeNotifiersById(String connectedWidgetId) → void
Removes all notifiers with the specified identifier
showDebugButton(BuildContext context, {Widget? button, bool isDelay = true, double left = 100, double top = 4}) → void
Show global hover debug buttons
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance CRLoggerInitializer
getter/setter pair