openai-compatible-providers-framework
Version:
OpenAI Compatible Providers Framework with Qwen and iFlow tool calling support, OAuth authentication, dynamic module loading, and comprehensive debug logging system
62 lines • 2.06 kB
TypeScript
/**
* Simple Debug Logging Implementation
* 简单调试日志实现
*/
import { DebugConfig } from '../types/debug-types';
/**
* Simple debug log manager for testing
* 用于测试的简单调试日志管理器
*/
export declare class SimpleDebugLogManager {
private config;
private logs;
constructor(config: DebugConfig);
startRequest(provider: string, operation: string, metadata?: any): {
requestId: string;
pipelineId: string;
provider: string;
operation: string;
metadata: any;
getRequestId: () => string;
getPipelineId: () => string;
getProvider: () => string;
getOperation: () => string;
getMetadata: () => any;
getStartTime: () => number;
getDuration: () => number;
};
trackStage(requestId: string, stage: string): void;
completeStage(requestId: string, stage: string, data?: any): void;
logSuccess(context: any, request: any, response: any): Promise<void>;
logError(context: any, error: any, request?: any, failedStage?: string, debugInfo?: any): Promise<void>;
info(message: string, context?: any): Promise<void>;
debug(message: string, context?: any): Promise<void>;
warn(message: string, context?: any): Promise<void>;
error(message: string, context?: any): Promise<void>;
getActiveRequests(): any[];
getDebugStatistics(): Promise<{
systemHealth: {
status: string;
};
errorStats: {
totalErrors: number;
};
systemLogStats: {
totalLogs: number;
};
activeRequests: never[];
fileStats: {
totalFiles: number;
};
}>;
setLogLevel(level: string): void;
getLogLevel(): string;
addSensitiveField(field: string): void;
getSensitiveFields(): string[];
searchLogs(query: any): Promise<any[]>;
cleanup(): Promise<void>;
destroy(): Promise<void>;
private sanitizeData;
private writeToDisk;
}
//# sourceMappingURL=SimpleDebugLogManager.d.ts.map