seneca-logentries-logger
v1.0.0
Published
Seneca Logentries Logger
Downloads
2
Readme
A Seneca.js logger for Logentries
seneca-logentries-logger
- Lead Maintainer: David Gonzalez
- Sponsor: nearForm
- node: 4.x, 6.x
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.