Skip to content

Logs

Document Rails automatically logs some actions as they occur within your tenancy.

These logs are not organization-bound, as their scope captures all organizations attached to your tenancy, and some resources which are not organization-scoped in the first place.

All logs provide the following fields:

  • id - log entry identifier, which can be used to distinguish the payload type.

  • severity - log entry severity, identifying the urgency of the event (allowed values: log, warning and error).

  • payload - arbitrary object with event-specific information.

Listing logs

Log pagination is performed using timestamps - to go to the next page, provide a timestamp that is older than the timestamp of the last entry you received in the previous query.

import { listLogs } from "@vaultie/document-rails";

const response = await listLogs(
    client,
    accessToken,
);
import { listLogs } from "@vaultie/document-rails";

const response = await listLogs(
    client,
    accessToken,
    // Get logs entries before January 1, 2025
    1735689600
);