1.0.1 • Published 9 months ago

deep-seas-logger v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Project Title

The purpose of this project is to provide a wrapper around the incredible winston library that will automatically configure a few things that I find I configure a lot and would rather have come standard in the library, especially configuring Winston's metadata via Environment variables.

Getting Started

  1. Install the deep-seas-logger via either javascript dependency manager you would like: yarn add deep-seas-logger or npm install deep-seas-logger
  2. Ensure that you have set the node environment variables associated with this logger:
  3. APP_NAME
  4. DOMAIN
  5. NODE_ENV
  6. USER_ID
  7. PLATFORM
  8. Then import the createLogger function anywhere you would like to use it: import { createLogger } from '../../index';
  9. You can now build an instance of the logger by invoking createLogger: const logger = createLogger()
1.0.1

9 months ago

1.0.0

9 months ago