1.0.1 • Published 4 years ago
winston-logging v1.0.1
Package for Winston logging
To use this package follow these steps:
- Import package by this statement:
import { getLoggerInstance } from "package";
- initialize variable: const logger = getLoggerInstance("type -> controller", "module_name -> xyz", "function_name -> xyz")
- To log use this format: logger.error(request-id, err.message, err);