@aviadholy/rmq-logger
v1.0.4
Published
logger
Downloads
3
Readme
rmq-logger
Install
npm i @aviadholy/rmq-logger
Import
import Logger from '@aviadholy/rmq-logger'
Initialize rmq-logger
(async () => {
logger = new Logger(rabbitmq_uri, logs_queue_name, service_name)
await logger.starter()
})
Usage
- logger.debug(message)
- logger.info(message)
- logger.warn(message)
- logger.error(message)
- logger.fatal(message)