Skip to main content
Glama

Bangalore BMTC Mobility Connectivity Platform

by ajeetraina
logger.js768 B
const winston = require('winston'); // Default to info if LOG_LEVEL is not set in environment const logLevel = process.env.LOG_LEVEL || 'info'; const logger = winston.createLogger({ level: logLevel, format: winston.format.combine( winston.format.timestamp(), winston.format.errors({ stack: true }), winston.format.splat(), winston.format.json() ), defaultMeta: { service: 'bmtc-mcp-server' }, transports: [ new winston.transports.Console({ format: winston.format.combine( winston.format.colorize(), winston.format.simple() ), }), new winston.transports.File({ filename: 'error.log', level: 'error' }), new winston.transports.File({ filename: 'combined.log' }), ], }); 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/ajeetraina/bengaluru-bmtc-mcp'

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