CRLoggerInitializer class
final
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, 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