new-relic-logs
v1.0.33
Published
Post logs to new relic
Downloads
232
Readme
NewRelic Logs Lib
NewRelic logs is a NodeJS library for send the logs to new relic .
Installation
Use npm npm .
npm i -s new-relic-logs
Add Environment Variables
process.env.NEW_RELIC_LICENSE_KEY = 'my-key'
process.env.NEW_RELIC_APP_NAME = 'my-app-name'
Usage
const logger = require('new-relic-logs')
logger.info('info log message')
logger.error('error log message!')
logger.warning('warning log message')