Skip to content

Source plugin for the Bunyan logger, responsible for injecting messages and reports from the Erlang error logger

Notifications You must be signed in to change notification settings

bunyan-logger/bunyan_source_erlang_error_logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bunyan.Source.ErlangErrorLogger

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»,
  ]
}
  • name: gives an instance of the erlang error logger a name. In the (unusual) case where you run multiple erlang error loggers, the name is used to distinguish them.

About

Source plugin for the Bunyan logger, responsible for injecting messages and reports from the Erlang error logger

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages