@phroun/paged-buffer
Version:
High-performance buffer system for editing massive files with intelligent memory management and undo/redo capabilities
50 lines • 1.44 kB
TypeScript
/**
* @fileoverview Simple logger utility with debug toggle
* @description Provides console logging with optional debug output control
* @author Jeffrey R. Day
* @version 1.0.0
*/
/**
* Logs messages to the console if debugging is enabled.
* Behaves like console.log, accepting multiple arguments.
*/
declare function debug(...args: any[]): void;
/**
* Logs warning messages to the console if debugging is enabled.
* Alias for debug function to maintain compatibility.
*/
declare function warn(...args: any[]): void;
/**
* Logs error messages to the console (always enabled).
*/
declare function error(...args: any[]): void;
/**
* Logs info messages to the console if debugging is enabled.
*/
declare function info(...args: any[]): void;
/**
* Enables or disables debug output.
*/
declare function setDebug(enable: boolean): void;
/**
* Gets the current debug state.
*/
declare function isDebugEnabled(): boolean;
/**
* Logger interface for compatibility with other logging libraries
*/
interface Logger {
debug(...args: any[]): void;
warn(...args: any[]): void;
error(...args: any[]): void;
info(...args: any[]): void;
setDebug(enable: boolean): void;
isDebugEnabled(): boolean;
}
/**
* Default logger instance
*/
declare const logger: Logger;
export { debug, warn, error, info, setDebug, isDebugEnabled, logger, type Logger };
export default logger;
//# sourceMappingURL=logger.d.ts.map