tidy_log library

Styled, readable debug console logs for Flutter.

void main() {
  TidyLog.configure(projectPackages: ['app', 'core_kit']);
  TidyLog.installErrorHooks();
  runApp(const App());
}

Classes

ResponseRule
Decides how a response went from its body, for backends that answer 200 to everything and put the real result in a field:
RuleVerdict
What a ResponseRule decided about one response.
TidyDioInterceptor
Logs each Dio request as one entry when it finishes:
TidyLog
The app-facing logger.

Enums

HttpBodies
Which HTTP calls print their body and resp lines.
HttpOutcome
How an HTTP exchange went, as the app sees it. Usually follows the status code (see httpOutcome); a response rule can say otherwise, for example a 200 whose body has success: false.
Level
Log severity shared by the in-app logger and the logcat cleaner.

Typedefs

ErrorText = String? Function(Object error)
Returns a short, one-line text for error, or null to fall back to the built-in descriptions and then toString().