Module: not-log

Simple wrapper for logging

Members


<inner, constant> ENV :string

value of process.env.NODE_ENV
Type:
  • string

<inner> pathToLog :string

path to log file
Type:
  • string

<inner, constant> winston :module

Winston logger module
Type:
  • module

Methods


<inner> getLogger(input)

Returns logger for module
Parameters:
Name Type Description
input cjsmodule | string if module object then used to localize error file if string, then it changes pathToLog
Returns:
Winston instance
Type
object