1.0.4 • Published 6 years ago

@brymonsoft/logger v1.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

##Logger Instance

Installation

npm i @brymonsoft/logger

Simple Use

Just create Logger instance

const endpoint = 'any endpoint with http/https'
const Logger = require('Logger');

const loggerEntity = new Logger(endpoint);

For log any messages you can call log method with params:

loggerEntity.log(TARGET_ID, TYPE, STACK, META)

Where:

ParamTypeRequiredDescription
TARGET_IDStringtrueidentifier of something that you add a log message about
TYPEStringtruetype of the log message, e.g. http, bot, qraphQl, my-custom-type1
METAAnyfalseany custom data that should be with log message
STACKStringfalsestack trace of the error
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago