MCPcopy Create free account
hub / github.com/ReAPI-com/mcp-openapi / constructor

Method constructor

src/core/Logger.ts:19–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 private isEnabled: boolean;
18
19 constructor() {
20 // Check for LOG_ENABLED environment variable
21 this.isEnabled = process.env.LOG_ENABLED === 'true';
22 }
23
24 private log(level: string, messageOrContext: string | LogContext, contextOrMessage?: LogContext | string) {
25 // If logging is not enabled, return early

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected