qbo-mcp-ts
Version:
TypeScript QuickBooks Online MCP Server with enhanced features and dual transport support
79 lines • 1.88 kB
TypeScript
/**
* Logger service for QBOMCP-TS
*/
import { ILoggerService } from '../types';
/**
* Logger implementation using Winston
*/
declare class Logger implements ILoggerService {
private winston;
private requestId?;
constructor();
/**
* Set request ID for tracing
*/
setRequestId(requestId: string): void;
/**
* Clear request ID
*/
clearRequestId(): void;
/**
* Add request ID to metadata
*/
private addRequestId;
/**
* Log info message
*/
info(message: string, meta?: any): void;
/**
* Log warning message
*/
warn(message: string, meta?: any): void;
/**
* Log error message
*/
error(message: string, error?: Error | any, meta?: any): void;
/**
* Log debug message
*/
debug(message: string, meta?: any): void;
/**
* Log HTTP request/response
*/
http(message: string, meta?: any): void;
/**
* Log API call
*/
api(operation: string, details: {
method?: string;
endpoint?: string;
statusCode?: number;
duration?: number;
error?: any;
request?: any;
response?: any;
}): void;
/**
* Log performance metrics
*/
performance(operation: string, duration: number, meta?: any): void;
/**
* Log cache operation
*/
cache(operation: 'hit' | 'miss' | 'set' | 'delete' | 'clear', key?: string, meta?: any): void;
/**
* Create child logger with context
*/
child(context: any): Logger;
/**
* Start a timer for performance logging
*/
startTimer(): () => void;
/**
* Log MCP tool execution
*/
tool(toolName: string, phase: 'start' | 'complete' | 'error', details?: any): void;
}
export declare const logger: Logger;
export { Logger };
//# sourceMappingURL=logger.d.ts.map