Home

Awesome

Bunyan.Source.ErlangErrorLogger

<!-- bunyan_header -->

Summary

This is a source plugin for the Bunyan logger project.

It is responsible for receiving log messages and reports from the standard Erlang error logger and injecting them into Bunyan.

By default, it will also capture OTP and SASL reports.

Installation

{ :bunyan_source_erlang_error_logger, "~> 0.0.0" },

Configuration

This plugin is configured as part of the sources section of the overall Bunyan configuration.

For context, the main Bunyan config looks like this:

config :bunyan,
       [
        read_from: [
          { source, [ source-specific config ] },
          { source, [ source-specific config ] },
          . . .
        ],

        write_to: [
          { writer, [ writer-specific config ] },
          { writer, [ writer-specific config ] },
        ]
      ]

The configuration described here becomes an entry in the read_from: section. It looks like this:

{
  Bunyan.Source.ErlangErrorLogger,
  [
    name:    «name»,
  ]
}