Skip to main content
Glama
lemaiwo

SAP OData to MCP Server

by lemaiwo
logger.ts1.08 kB
import winston from 'winston'; export class Logger { private winston: winston.Logger; constructor(private component: string) { this.winston = winston.createLogger({ level: process.env.LOG_LEVEL || 'info', format: winston.format.combine( winston.format.timestamp(), winston.format.errors({ stack: true }), winston.format.json() ), defaultMeta: { component: this.component, service: 'btp-sap-odata-to-mcp-server' }, transports: [ new winston.transports.Console() ] }); } debug(message: string, meta?: unknown): void { this.winston.debug(message, meta); } info(message: string, meta?: unknown): void { this.winston.info(message, meta); } warn(message: string, meta?: unknown): void { this.winston.warn(message, meta); } error(message: string, meta?: unknown): void { this.winston.error(message, meta); } }

Latest Blog Posts

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/lemaiwo/btp-sap-odata-to-mcp-server'

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