notifications-logger

0.0.2 • Public • Published

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i notifications-logger

    Weekly Downloads

    0

    Version

    0.0.2

    License

    ISC

    Unpacked Size

    1.84 kB

    Total Files

    4

    Last publish

    Collaborators

    • joerverson