@je-es/log
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@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

Package Sidebar

Install

npm i @je-es/log

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

73.1 kB

Total Files

9

Last publish

Collaborators

  • maysara-ecs