0.0.2 • Published 6 years ago

notifications-logger v0.0.2

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

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"
}