mcp-ssh-tool
Version:
Model Context Protocol (MCP) SSH client server for remote automation
47 lines (46 loc) • 1.06 kB
TypeScript
/**
* Logging utilities with sensitive data redaction
*/
/**
* Redacts sensitive information from an object
*/
export declare function redactSensitiveData(obj: any): any;
/**
* Redacts sensitive information from error messages and stack traces
*/
export declare function redactErrorMessage(message: string): string;
/**
* Logger levels
*/
export declare enum LogLevel {
ERROR = 0,
WARN = 1,
INFO = 2,
DEBUG = 3
}
/**
* Simple logger with redaction
*/
export declare class Logger {
private level;
constructor(level?: LogLevel);
private log;
error(message: string, data?: any): void;
warn(message: string, data?: any): void;
info(message: string, data?: any): void;
debug(message: string, data?: any): void;
}
export declare const logger: Logger;
/**
* Performance measurement utilities
*/
export declare class Timer {
private startTime;
constructor();
elapsed(): number;
reset(): void;
}
/**
* Creates a timer for measuring operation duration
*/
export declare function createTimer(): Timer;