0.0.7 • Published 3 years ago
hgi-logger v0.0.7
Logging utility
Installation
npm i hgi-logger@latest
Sample call 1
containerID
const logger = require('hgi-logger');
logger.error('Opss error...');
Sample call 2
const logger = require('hgi-logger');
logger.error(
{ containerId: 'link',
status: 'ERROR',
data: err,
});
Structure of JSON message:
containerId: 'id of the container'
status: 'ERROR'
data: 'any text'
If no structure is provided it is filled with:
containerId: 'current working directory'
status: 'ERROR'
data: 'your text'