MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / createLogger

Function createLogger

server/src/logger.ts:185–188  ·  view source on GitHub ↗
(context: string | Record<string, unknown>)

Source from the content-addressed store, hash-verified

183 * Create a child logger with specific context
184 */
185export function createLogger(context: string | Record<string, unknown>) {
186 const bindings = typeof context === 'string' ? { module: context } : context;
187 return logger.child(bindings);
188}
189
190/**
191 * Log levels guide:

Callers 15

http.tsFile · 0.85
dev-setup.tsFile · 0.85
crawler.tsFile · 0.85
mcp-tools.tsFile · 0.85
capabilities.tsFile · 0.85
admin-routes.tsFile · 0.85
send-pipeline.tsFile · 0.85
cover.tsFile · 0.85
builder.tsFile · 0.85
assessment.tsFile · 0.85
network-health.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected