Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbrisbin/lager_amqp_backend
AMQP RabbitMQ Lager backend
https://github.com/jbrisbin/lager_amqp_backend
Last synced: 3 months ago
JSON representation
AMQP RabbitMQ Lager backend
- Host: GitHub
- URL: https://github.com/jbrisbin/lager_amqp_backend
- Owner: jbrisbin
- Created: 2011-11-17T19:33:52.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-04-13T20:46:30.000Z (over 12 years ago)
- Last Synced: 2024-05-02T12:41:28.108Z (6 months ago)
- Language: Erlang
- Homepage:
- Size: 211 KB
- Stars: 33
- Watchers: 6
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-erlang - lager_amqp_backend - AMQP RabbitMQ Lager backend. (Logging)
README
# Lager AMQP Backend
This is a backend for the Lager Erlang logging framework.
[https://github.com/basho/lager](https://github.com/basho/lager)
It will send all of your logging messages to the exchange you specify and use the logging level
as the routing key. It uses a smart connection pool to your broker. If the connection drops or
becomes unusable, the backend will reconnect.### Usage
Include this backend into your project using rebar:
{lager_amqp_backend, ".*", {git, "https://github.com/jbrisbin/lager_amqp_backend.git", "master"}}
### Configuration
You can pass the backend the following configuration (shown are the defaults):
{lager, [
{handlers, [
{lager_amqp_backend, [
{name, "lager_amqp_backend"},
{level, debug},
{exchange, <<"lager_amqp_backend">>},
{amqp_user, <<"guest">>},
{amqp_pass, <<"guest">>},
{amqp_vhost, <<"/">>},
{amqp_host, "localhost"},
{amqp_port, 5672}
]}
]}
]}### License
Apache 2.0, just like everything else I do. :)