@c2c-techhub/logger
v1.0.7
Published
Specialized logger for C2C
Downloads
11
Keywords
Readme
c2c logger
Specialized logger for C2C
Table of Contents
Installation
npm install @c2c-techhub/logger
Usage
Import the logger into your javascript module as follows:
const loggerFactory = require("@c2c-techhub/logger");
const logger = loggerFactory.get();
logger.info("Logging an info message");
const fluentLogger = loggerFactory.get("fluentd", "APP_NAME", "localhost");
fluentLogger.info("logging in fluent logger");
Additional features
Also export a morganlogger that can be used to parse morgan logs