Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 38 lines (27 sloc) 1.112 kb
a5e55a5 @jbrisbin Initial commit
authored
1 # Lager AMQP Backend
2
3 This is a backend for the Lager Erlang logging framework.
4
5 [https://github.com/basho/lager](https://github.com/basho/lager)
6
7 It will send all of your logging messages to the exchange you specify and use the logging level
450013f @jbrisbin Tweaked README
authored
8 as the routing key. It uses a smart connection pool to your broker. If the connection drops or
a5e55a5 @jbrisbin Initial commit
authored
9 becomes unusable, the backend will reconnect.
10
11 ### Usage
12
13 Include this backend into your project using rebar:
14
15 {lager_amqp_backend, ".*", {git, "https://github.com/jbrisbin/lager_amqp_backend.git", "master"}}
16
17 ### Configuration
18
19 You can pass the backend the following configuration (shown are the defaults):
20
21 {lager, [
22 {handlers, [
23 {lager_amqp_backend, [
24 {name, "lager_amqp_backend"},
25 {level, debug},
26 {exchange, <<"lager_amqp_backend">>},
27 {amqp_user, <<"guest">>},
28 {amqp_pass, <<"guest">>},
29 {amqp_vhost, <<"/">>},
30 {amqp_host, "localhost"},
31 {amqp_port, 5672}
32 ]}
33 ]}
34 ]}
35
36 ### License
37
38 Apache 2.0, just like everything else I do. :)
Something went wrong with that request. Please try again.