Zanny's Persistent Memory Manager

by zannyonear1h1
Verified
import winston from 'winston'; import { config } from './config'; // Create a winston logger instance const logger = winston.createLogger({ level: config.logger.level, format: winston.format.combine( winston.format.timestamp(), winston.format.json() ), transports: [ // Console transport - using JSON format to ensure MCP compatibility new winston.transports.Console({ format: winston.format.combine( winston.format.timestamp(), winston.format.json() ) }), // File transport new winston.transports.File({ filename: config.logger.filename, maxsize: 5242880, // 5MB maxFiles: 5, }) ] }); // Export the logger instance export default logger;