1.3.0 • Published 4 years ago
inspira-logging v1.3.0
INSPIRA LOGGING
It does create 2 logging files. The first one will have all logs and the second one will have only errors.
HOW TO USE
npm install --save inspira-logging
EXAMPLE
import InspiraLogger from 'inspira-logging';
const inspiraLogger = new InspiraLogger('<logs dir>', '<log name>');
// Send a message to healthChecks channel
inspiraLogger.info('<log message>');
inspiraLogger.error('<error message>');
HOW TO PUBLISH
Push a change with a new version set in package.json and bitbucket pipeline will automatically publish a new npm package.
NOTE: To understand when the version number needs to change refer to npm documentation