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
bodyandresplines. - 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 hassuccess: false. - Level
- Log severity shared by the in-app logger and the logcat cleaner.