IsoLogger
An isomorphic logger that uses Winston on the server and console on the client.
Installation
npm install iso-logger --save
Compilation
The WEB_ENV
environment variable must be set to 'true'
when you compile your browser bundle in order to exclude
Winston from the build.
Usage
// logger.js ; const level = processenvNODE_ENV === 'production' ? 'warn' : 'debug'; ;
// module.js ; logger;logger;logger; logger; logger;
Documentation
Please read the documentation on the IsoLogger github pages.
License
IsoLogger is MIT Licensed.