Skip to main content
Glama

Enhanced Outlook MCP Server

by jibberish69
logger.js1.23 kB
const winston = require('winston'); const config = require('../config'); // Create a custom format that includes timestamp, level, and message const customFormat = winston.format.combine( winston.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }), winston.format.printf(info => { return `${info.timestamp} [${info.level.toUpperCase()}]: ${info.message}${ info.stack ? '\n' + info.stack : '' }${ info.data ? '\n' + JSON.stringify(info.data, null, 2) : '' }`; }) ); // Create the logger const logger = winston.createLogger({ level: config.server.logLevel, format: customFormat, transports: [ // Console transport new winston.transports.Console({ format: winston.format.combine( winston.format.colorize(), customFormat ) }), // File transport for errors and above new winston.transports.File({ filename: 'error.log', level: 'error' }), // File transport for all logs new winston.transports.File({ filename: 'combined.log' }) ] }); // Add a method to log with attached data object logger.logWithData = (level, message, data) => { logger.log(level, message, { data }); }; module.exports = logger;

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jibberish69/enhanced-outlook-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server