0.0.7 • Published 3 years ago

hgi-logger v0.0.7

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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'  
0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago