Use the ably logs channel-lifecycle subscribe command to stream logs from the [meta]channel.lifecycle meta channel.
Synopsis
ably logs channel-lifecycle subscribe [options]Options
--rewind
The number of messages to rewind when subscribing. Defaults to 0.
--duration | -D
The duration in seconds to subscribe for before automatically unsubscribing.
--client-id
A client ID to use when subscribing.
--json
Output results as compact JSON. Mutually exclusive with --pretty-json.
--pretty-json
Output results in formatted JSON. Mutually exclusive with --json.
--verbose | -v
Enable verbose logging. Can be combined with --json or --pretty-json.
Examples
Subscribe to channel lifecycle events:
ably logs channel-lifecycle subscribeSubscribe with rewind to receive recent events:
ably logs channel-lifecycle subscribe --rewind 5Subscribe to channel lifecycle events and output in JSON format:
ably logs channel-lifecycle subscribe --jsonSee also
- Logs — Explore all
ably logscommands. - CLI reference — Full list of available commands.