Logs

Open in

Use the ably logs command group to stream and retrieve logs from Ably. These commands enable you to subscribe to live logs, retrieve log history, and monitor channel lifecycle, connection lifecycle, and push notification events.

Application logs

Use the following commands to subscribe to live application logs and retrieve log history:

CommandDescription
ably logs subscribeSubscribe to live app logs.
ably logs historyRetrieve application log history.

Channel lifecycle

Use the following command to stream channel lifecycle events from the [meta]channel.lifecycle metachannel. Channel lifecycle events indicate when channels become active or inactive:

CommandDescription
ably logs channel-lifecycle subscribeSubscribe to channel lifecycle events.

Connection lifecycle

Use the following commands to stream and retrieve connection lifecycle logs. Connection lifecycle events are published to the [meta]connection.lifecycle metachannel when clients connect to and disconnect from Ably:

CommandDescription
ably logs connection-lifecycle subscribeSubscribe to live connection lifecycle logs.
ably logs connection-lifecycle historyRetrieve connection lifecycle log history.

Push notifications

Use the following commands to stream and retrieve push notification logs. Push notification logs track delivery events for messages sent via APNs, FCM, and web push:

CommandDescription
ably logs push subscribeSubscribe to push notification logs.
ably logs push historyRetrieve push notification log history.

See also