prettyJson property

bool prettyJson
final

Pretty print structured log payloads with indentation.

This changes whitespace only. Top-level strings, including strings that contain JSON, are emitted directly as text.

  • Use EffDioLogger(prettyJson: true) to print formatted JSON logs.
  • Default is false, so output stays on one line.
  • If you need the full pretty-printed payload, consider using compact: false and maxWidth: null to avoid truncation.

Implementation

final bool prettyJson;