馃惐 Medium-horizon agent planning MCP server
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 32 lines 824 B view raw
1/** 2 * Pino logger configuration 3 * 4 * In development mode, uses pino-pretty for readable output. 5 * In production, outputs structured JSON. 6 */ 7 8import pino from "pino"; 9import { env } from "./env.js"; 10 11// Create logger with appropriate transport based on environment 12export const logger = 13 process.env.NODE_ENV === "development" 14 ? pino({ 15 level: env.NINEPLAN_LOG_LEVEL, 16 transport: { 17 target: "pino-pretty", 18 options: { 19 colorize: true, 20 translateTime: "SYS:standard", 21 ignore: "pid,hostname", 22 }, 23 }, 24 }) 25 : pino({ 26 level: env.NINEPLAN_LOG_LEVEL, 27 // In production, just use base JSON logger 28 base: { name: "9plan" }, 29 }); 30 31// Re-export Logger type for convenience 32export type { Logger } from "pino";