LoggerLagerBackend

A lager (https://github.com/basho/lager) backend for Elixir's Logger (http://elixir-lang.org/docs/master/logger/Logger.html).

That is, it routes messages generated with Logger.<level>() to lager. This is useful if you have a mixed Erlang/Elixir project and have decided to standardize on lager as a logging framework.

Known limitations:

Installation

If available in Hex, the package can be installed as:

  1. Add logger_lager_backend to your list of dependencies in mix.exs:

    def deps do

     [{:logger_lager_backend, "~> 0.0.1"}]

    end

  2. Ensure logger_lager_backend is started before your application:

    def application do

     [applications: [:logger_lager_backend]]

    end

Configuration

config :logger,
  backends: [LagerLoggerBackend],
  level: :debug

Related projects