ArangoDB stream for Bunyan
A simple and configurable ArangoDB for Bunyan. The module itself is relatively simple, so it should work with most versions of ArangoDB and the module dependencies.
Please note: This module will not create the database and/or collection for you. These must already exist in your ArangoDB instance when your code is run.
Installation
npm install bunyan-arangodb
Basic Usage
var bunyan = ;var bunyanArangoDB = ; var _systemLogger = 'src': false 'name': 'systemLogger' 'serializers': bunyanstdSerializers 'streams': 'level': 'info' 'stream': 'collection': 'systemLog' 'agentOptions': {} // Standard agentOptions that are permitted with http.Agent and https.Agent (Optional) 'username': 'someGuy' 'password': 'myPassword' 'server': 'http://127.0.0.1:8529' // default 'db': '_system' // default var logger = bunyan; logger;
API
Usage is straight forward and relatively simple. Starting with v1.0.0, you can pass agentOptions, which will allow for things such as trusting certificates issued from internal CAs.