Skip to content

Add compact JSON logging option to talker_dio_logger#510

Draft
Frezyx with Copilot wants to merge 2 commits into
masterfrom
copilot/talker-dio-logger-fix-json-logging
Draft

Add compact JSON logging option to talker_dio_logger#510
Frezyx with Copilot wants to merge 2 commits into
masterfrom
copilot/talker-dio-logger-fix-json-logging

Conversation

Copilot AI commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Thanks a lot for contributing!

Provide a description of your changes below

JSON response logs were always pretty-printed across multiple console lines, which makes Flutter console output hard to copy because each line gets the platform log prefix. This change adds an opt-in compact JSON format so response payloads can be logged as a single line when needed.

  • Formatter update

    • Adds prettyPrint to TalkerJsonFormatter
    • Keeps existing behavior by default (prettyPrint: true)
    • Supports compact single-line JSON with prettyPrint: false
  • Dio logger integration

    • Exposes the compact JSON option through existing jsonFormatter configuration in TalkerDioLoggerSettings
    • Leaves all current logging behavior unchanged unless explicitly configured
  • Docs and coverage

    • Documents the single-line JSON option in talker_dio_logger
    • Adds focused tests for compact formatter output and single-line response log generation
TalkerDioLoggerSettings(
  jsonFormatter: const TalkerJsonFormatter(prettyPrint: false),
)

Copilot AI changed the title [WIP] Fix JSON response logs to remove I/flutter prefix Add compact JSON logging option to talker_dio_logger Jul 15, 2026
Copilot AI requested a review from Frezyx July 15, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[talker_dio_logger] JSON response logs are difficult to copy due to I/flutter prefix on each line

2 participants