seneca-logentries-logger

1.0.0 • Public • Published

Seneca

A Seneca.js logger for Logentries

seneca-logentries-logger

npm version Build Status Dependency Status Coveralls Gitter

This module is a plugin that enables your Seneca-based microservice to send logs to Logentries.

Seneca compatibility

Supports Seneca versions 2.x - 3.x

Getting Started

Here is an example on how to use the logger:

var Seneca = require('seneca')
var seneca = Seneca({legacy: {logging: false}, 'logentries-logger': {token: <your-token>}})
seneca.use(require('seneca-logentries-logger'))

And that's all! From now on, all the Seneca log output will be sent to the Logentries log configured to the specified token.

Configuration

In order to configure the logger there is a number of configuration parameters that can be passed into Seneca in the key 'logentries-logger'. The parameters will be passed straight away into the Logentries.

seneca-logentries-logger will default the values for levels (if not specified) to match the naming convention for used for seneca on the log levels. However, if you specify the attribute values, seneca-logentries-logger will respect your configuration.

The configuration is based on the le_node client.

The only required attribute is token as shown in the above example.

Compatibility

Seneca-logentries-logger is only compatible with Seneca 3.0+ and Node 4.x+

Contributing

The Senecajs org encourage open participation. If you feel you can help in any way, be it with documentation, examples, extra testing, or new features please get in touch.

License

Copyright (c) 2016, David Gonzalez and other contributors. Licensed under MIT.

Readme

Keywords

none

Package Sidebar

Install

npm i seneca-logentries-logger

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mcdonnelldean
  • mihaidma