Skip to content

Logging

Gain visibility into your LLM operations for debugging and auditing.

Console Logger

typescript
import { ConsoleLogger } from 'meloqui';

const client = new ChatClient({
  logger: new ConsoleLogger({ level: 'debug' })
});

Custom Logger

Connect to your observability platform (Datadog, Sentry, etc.):

typescript
const client = new ChatClient({
  logger: {
    info: (msg, ctx) => myLogService.info(msg, ctx),
    error: (msg, err) => myLogService.error(msg, err),
    // ...
  }
});

Released under the MIT License.