Skip to main content

Quick Setup

Set up ai-logger in three steps.

Step 1 — Install

npm install @integritas-technology/ai-logger

Step 2 — Run the init command

Run the following command in your project root to set up the SDK:

npx ai-logger init

This creates a local .ai-logger folder and .ai-logger.config.json file in your project where event logs, validation reports and configurations are stored.

Step 3 — Initialize the logger

import { AILogger } from "@integritas-technology/ai-logger";

const aiLogger = new AILogger({
systemId: "your-system-name",
});

Creates an AILogger instance with a unique systemId — this is the name that identifies your AI system in the dashboard and in generated reports. You only need to do this once per application.