UNPKG

@vitaly-yosef/node-smart-logger

Version:

Universal logger for Node.js applications with support for both ESM and CommonJS. It provides advanced features, such as structured logging in JSON format, integration with AWS CloudWatch Logs, and contextual logging.

7 lines (6 loc) 220 B
/** * Rate limiting function * @returns {boolean} True if log is allowed, false if rate limit exceeded */ export declare function checkRateLimit(): boolean; export declare function resetRateLimit(now?: number): void;