@zulfikar4568/color-logger
v0.0.1
Published
<h1 align="center" style="border-bottom: none;">Simple Color Logger</h1> <h3 align="center">Custom Nodejs Logger using winston</h3> <p align="center"> <a href="https://github.com/zulfikar4568/color-logger/actions/workflows/publish.yml?query=branch%3Amas
Readme

Install
# Using yarn
yarn add @zulfikar4568/color-logger
# Using npm
npm install @zulfikar4568/color-loggerExample
Logging
import { awesomeLogger } from "@zulfikar4568/color-logger";
const logger = awesomeLogger('My Application :','silly', true, 'logs/','my-app-log', 'error', true, true, true, true)
logger.error('Hellow Error')
logger.warn('Hellow Warning')
logger.info('Hellow Info')
logger.http('Hellow HTTP')
logger.verbose('Hellow Verbose')
logger.debug('Hellow Debug')
logger.silly('Hellow Silly')
for(let i = 0; i < 100000; i++) {
logger.info('Hellow Info')
}Handle Rejections
import { awesomeLogger } from "./utils/logger";
const logger = awesomeLogger('My Application :','silly', true, 'logs/','my-app-log', 'error', true, true, true, true)
Promise.reject('Rejected! ')Handle Exceptions
import { awesomeLogger } from "./utils/logger";
const logger = awesomeLogger('My Application :','silly', true, 'logs/','my-app-log', 'error', true, true, true, true)
throw new Error('Error sue')Author: M Zulfikar Isnaen
