@dollhousemcp/mcp-server
Version:
DollhouseMCP - A Model Context Protocol (MCP) server that enables dynamic AI persona management from markdown files, allowing Claude and other compatible AI assistants to activate and switch between different behavioral personas.
31 lines • 1.53 kB
TypeScript
/**
* Phase 4: Integration Hooks for Unified Logging System.
*
* Maps native events from 10 monitoring/logging systems into UnifiedLogEntry
* objects and routes them through LogManager. Each source system exposes a
* lightweight `addLogListener` callback; the translation logic lives here so
* source files stay minimal and never import UnifiedLogEntry.
*
* Usage:
* const cleanups = wireLogHooks(logManager, container);
* // later …
* cleanups.forEach(fn => fn());
*/
import type { LogManager } from './LogManager.js';
type CorrelationIdProvider = {
getCorrelationId(): string | undefined;
};
export declare function getTriggerMetricsLogListener(logManager: LogManager, contextTracker?: CorrelationIdProvider): (level: 'debug' | 'info' | 'warn' | 'error', message: string, data?: Record<string, unknown>) => void;
export declare function getSecurityAuditorLogListener(logManager: LogManager, contextTracker?: CorrelationIdProvider): (level: 'debug' | 'info' | 'warn' | 'error', message: string, data?: Record<string, unknown>) => void;
/**
* Wire all monitoring systems into the unified logging pipeline.
*
* @param logManager The LogManager singleton from the DI container.
* @param container The DI container (used to resolve source services).
* @returns Array of unsubscribe functions — call them during shutdown.
*/
export declare function wireLogHooks(logManager: LogManager, container: {
resolve<T>(name: string): T;
}): (() => void)[];
export {};
//# sourceMappingURL=LogHooks.d.ts.map