msexchange-mcp
Version:
MCP server for Microsoft Exchange/Outlook email operations via Microsoft Graph API
22 lines • 768 B
JavaScript
// Simple logger utility for the Exchange MCP server
export const logger = {
info: (message, data) => {
if (process.env.DEBUG) {
console.log(`[INFO] ${message}`, data ? JSON.stringify(data, null, 2) : '');
}
},
error: (message, data) => {
console.error(`[ERROR] ${message}`, data ? JSON.stringify(data, null, 2) : '');
},
warn: (message, data) => {
if (process.env.DEBUG) {
console.warn(`[WARN] ${message}`, data ? JSON.stringify(data, null, 2) : '');
}
},
debug: (message, data) => {
if (process.env.DEBUG === 'verbose') {
console.log(`[DEBUG] ${message}`, data ? JSON.stringify(data, null, 2) : '');
}
},
};
//# sourceMappingURL=logger.js.map