deep-seas-logger

1.0.1 • Public • Published

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()

Readme

Keywords

none

Package Sidebar

Install

npm i deep-seas-logger

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

23.8 kB

Total Files

22

Last publish

Collaborators

  • theurbanwarlord