Skip to content

Session replay: capture console/print logs into replay #493

Description

@ioannisj

Part of the replay parity tracker PostHog/posthog#30889.

Problem

posthog-js records console logs into the replay ($console_log). Flutter has no equivalent: the Android layer hard-disables it (captureLogcat = false in PosthogFlutterPlugin.kt), iOS has no console-into-replay, and the Dart pipeline captures only screenshots. So Dart print/logging output never reaches the replay.

Scope

  • Capture Dart print/logging output into the replay stream.

Note: value is limited on Flutter's screenshot-based replay, worth weighing before prioritizing.

Reference: posthog-js console-log recording in packages/browser/src/extensions/replay/external/lazy-loaded-session-recorder.ts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions