Skip to content

Unlock the power of customizable logging with Key Logger! This lightweight utility empowers developers to take control of their logs, offering dynamic options, customizable log types, and a sleek interface.

Notifications You must be signed in to change notification settings

itachi9797/gen-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gen Logger

npm version

Unlock the power of customizable logging with Gen Logger! This lightweight utility empowers developers to take control of their logs, offering dynamic options, customizable log types, and a sleek interface.

Features

  • Customizable Logging: Tailor your logging experience with customizable log types, colors, and labels to suit your application's needs.
  • Dynamic Options: Easily configure logging options such as log level, scope, and more to adapt to different environments.
  • Sleek Interface: Enjoy a clean and intuitive logging interface that makes debugging and monitoring a breeze.

Installation

Install the package via npm:

npm install gen-logger

Usage

TypeScript Users

import Logger from 'gen-logger';

// Create a new instance of the Logger
const logger = new Logger();

// Log messages
logger.info('Information message');
logger.warn('Warning message');
// Add more log statements as needed

CommonJS Users

const Logger = require('gen-logger');

// Create a new instance of the Logger
const logger = new Logger();

// Log messages
logger.info('Information message');
logger.warn('Warning message');
// Add more log statements as needed

Preview

gen-logger-Ecample

Example

Common Js

const Logger = require('gen-logger');

// Create a new instance of the Logger
const logger = new Logger({ 
    scope: "TEST", // Optional
    disabled: false, // Optional
    interactive: false, // Optional
    logLevel: 'info', // Optional
});

// Log messages
logger.info('Information message');
logger.warn('Warning message');
// Add more log statements as needed

Typescript

import Logger from 'gen-logger';

// Create a new instance of the Logger
const logger = new Logger({ 
    scope: "TEST", // Optional
    disabled: false, // Optional
    interactive: false, // Optional
    logLevel: 'info', // Optional
});

// Log messages
logger.info('Information message');
logger.warn('Warning message');
// Add more log statements as needed

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Unlock the power of customizable logging with Key Logger! This lightweight utility empowers developers to take control of their logs, offering dynamic options, customizable log types, and a sleek interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published