Zanny's Persistent Memory Manager

by zannyonear1h1
Verified
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const winston_1 = __importDefault(require("winston")); const config_1 = require("./config"); // Create a winston logger instance const logger = winston_1.default.createLogger({ level: config_1.config.logger.level, format: winston_1.default.format.combine(winston_1.default.format.timestamp(), winston_1.default.format.json()), transports: [ // Console transport - using JSON format to ensure MCP compatibility new winston_1.default.transports.Console({ format: winston_1.default.format.combine(winston_1.default.format.timestamp(), winston_1.default.format.json()) }), // File transport new winston_1.default.transports.File({ filename: config_1.config.logger.filename, maxsize: 5242880, // 5MB maxFiles: 5, }) ] }); // Export the logger instance exports.default = logger;