notifications-logger

The class for get the logs in systems and send for server api


Keywords
API, logger, notification-logger, monit
License
ISC
Install
npm install notifications-logger@0.0.2

Documentation

Install

npm i notification-logger

Notification Logger

how instance the lib

const notifyLogger = new NotificationLogger({
  applicationName: 'application name' ,
  version: '<version-app>'
  hostAPI: 'http://localhost:3002' 
})

Methods

monit

the principal method, him used by send messagens for api

notifyLogger.monit('you message logger')

structure information sent

POST htp://you-url<:port>/log/name-application

{
    created_at: YYYY-MM-DD HH:mm:ss,
    data: "lorem ipsu"
}