Skip to main content

Architecture


Core Concepts

Log Structure

Every log entry has a consistent structure across all SDKs:

Log Types

Importance Levels


SDKs

Next.js (@snaplog/next)

Features: App Router & Pages Router, Client/Server/Edge, logger.get(), logger.stream(), webhook verification.

NestJS (@snaplog/nest)

Features: Module config (forRoot/forRootAsync), @Log/@Track/@Metrics/@NoLog decorators, global HTTP interceptor, LoggerService implementation.

Key Features


Data Flow

  1. Instrument — Add SDK to your app, log with structured fields
  2. Transport — SDK batches logs, sends via HTTPS with retries
  3. Ingest — SnapLog API receives, validates, stores
  4. Query — Dashboard or API: filter, search, aggregate
  5. Alert — Dashboard rules evaluate, trigger notifications
  6. Stream — SSE connection for real-time log viewing

Next Steps

Quickstart

Get started in 30 seconds