@je-es/log
v1.0.3
Published
Designed specifically for Node.js environments, offers a robust logging solution to streamline event tracking and debugging processes.
Downloads
9
Maintainers
Readme
@je-es/log
Designed specifically for Node.js environments, offers a robust logging solution to streamline event tracking and debugging processes.
📥 Usage
npm i @je-es/log
🌟 Syntax
import { log } from '@je-es/log'; log(' ? ', { level ?: 'info' | 'warn' | 'error' | 'debug'; minify ?: boolean; to ?: 'terminal' | string; });
import { logger } from '@je-es/log'; const logger = new logger( { root ?: string; // the main directory save ?: boolean; // save logs to files ? }); logger.<info|warn|error|debug>(' ? ', { filePath ?: string; // default is : root + /logs/level.log save ?: boolean; // ignore logger.save });
Documentation
Made with ❤ by Maysara Elshewehy