import { pino, type Logger } from 'pino'; import type { CollabEnv } from '@dorfteich/shared'; /** * A pino JSON logger, matching the api's structured output (ADR 0003 asks the * collab service to log consistently with the api). Every line carries * `service: "collab"` so logs from the two containers are easy to tell apart. */ export function createLogger(env: Pick): Logger { return pino({ level: env.LOG_LEVEL, base: { service: 'collab', version: env.APP_VERSION }, }); }