UNPKG

@translated/lara-mcp

Version:

Lara API official MCP server

11 lines (10 loc) 347 B
import { pino } from "pino"; import { env } from "./env.js"; export const logger = pino({ level: env.LOGGING_LEVEL, }, // Since STDIO server logs to stdout, we need to log to stderr in order // to avoid the client from reading the logs env.TRANSPORT === "stdio" ? pino.destination(process.stderr) : pino.destination(process.stdout));