pino-loggly
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

pino-loggly Build Status

send pino logs to loggly

Install

npm install pino-loggly

Usage

Send pino logs to loggly

node my-app.js | pino-loggly [options]
import PinoLoggly from "pino-loggly";
 
const loggly = new PinoLoggly({
  token: 'token-goes-here',
  tags: ['tag1', 'tag2'],
  json: false,
  returnStream: true,
});
 
const logger = pino(loggly.init());
 
logger.error('Hello World');

Options

Usage
  $ pino-loggly [options]
 
Options
  --token         Loggly token [Required]
  --tag           list of tags [Default: ""]
  --json          data is json type
  --returnStream  send to stdout and/or stderr
  --logLevel      log level [Default: info]
 
Example
  $ pino-loggly --token 2c52ac24-2c52ac24-2c52ac24-2c52ac24 --tag pino-loggly --tag cli-msg --json false

License

MIT © Rhaynel Parra Aguiar

Readme

Keywords

Package Sidebar

Install

npm i pino-loggly

Weekly Downloads

8

Version

2.0.1

License

MIT

Unpacked Size

37.7 kB

Total Files

29

Last publish

Collaborators

  • rhaynel