magnet-bunyan

2.0.0 • Public • Published

Build Status

Usage

Basic

import magnet from 'magnet-core';
import Logger from 'magnet-bunyan';

magnet([
  Logger,
]);

With Adapter

import magnet from 'magnet-core';
import Logger from 'magnet-bunyan';

let app = await magnet([Logger]);
app.log.info('Some useful info');

server/config/bunyan.js

import Bunyan2Loggly from 'bunyan-loggly';

export default {
  name: 'magnetBunyan',
  streams: [
    {
      type: 'raw',
      stream: new Bunyan2Loggly({
        token: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
        subdomain: 'magnet',
        tags: ['production', 'api']
      })
    }
  ]
}

Package Sidebar

Install

npm i magnet-bunyan

Weekly Downloads

16

Version

2.0.0

License

MIT

Last publish

Collaborators

  • kievechua