Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 713 Bytes

File metadata and controls

29 lines (17 loc) · 713 Bytes

generate-it-logger

This logger uses Winston under the hood. It is a simple one liner installation to convert plain old console logs to formatted loggin based on the apps packag.json file.

How to use

Just include this package once and before everything else:

import 'generate-it-logger';

That is it.

What happens

The package will read your API's package json file and use this data to better format the console logs, read this packages index.js file for how.

What is configurable

You can configure this package with env variables (ie a .env file or real env vars).

To use the normal console logger, set either VERBOSE to true/TRUE

For example

VERBOSE=TRUE