1.0.1 • Published 4 years ago

winston-logging v1.0.1

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
4 years ago

Package for Winston logging

To use this package follow these steps:

  1. Import package by this statement:

import { getLoggerInstance } from "package";

  1. initialize variable: const logger = getLoggerInstance("type -> controller", "module_name -> xyz", "function_name -> xyz")
  1. To log use this format: logger.error(request-id, err.message, err);