Skip to content

Quick Start

Get auralogs running in your app in under 2 minutes. You’ll install the SDK, initialize it with an ingest key, and send your first log.

Terminal window
npm install auralog-sdk

Or with yarn/pnpm:

Terminal window
yarn add auralog-sdk
# or
pnpm add auralog-sdk

Add these lines at the entry point of your application:

import { init, auralog } from "auralog-sdk";
init({
apiKey: "aura_your_ingest_key",
environment: "production",
});

That’s it. auralogs is now capturing uncaught errors and unhandled promise rejections automatically.

auralog.info("App started");
auralog.error("Payment failed", {
userId: "usr_123",
error: "card_declined",
});

Error-level logs are sent to auralogs immediately. Other levels are batched and sent every 5 seconds.

  1. Logs are ingested — the SDK sends logs to ingest.auralog.ai.
  2. You can inspect them immediately — use the log viewer in the dashboard, or use the startup read key for API and MCP access.
  3. Your agent can query production context — connect Codex, Claude, Cursor, or another MCP client and ask it to search logs, inspect metadata, and summarize what changed.
  4. Automation is optional — add an AI provider key for generated analyses, notifications, scheduled reviews, or GitHub autofix.

Next: Your First Log — verify everything is connected.