Skip to content

Commit

Permalink
added syslog support
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfa committed Oct 9, 2013
1 parent 2807d78 commit 9873a5a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[{lager, [
{handlers, [
{lager_console_backend, info},
{lager_file_backend, [{file, "log/error.log"}, {level, error}]},
{lager_file_backend, [{file, "log/console.log"}, {level, info}]},
{lager_syslog_backend, ["horst", local1, info]}
] }
]}].
2 changes: 1 addition & 1 deletion dev.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
mkdir -p log
erl -sname horst -setcookie nocookie -pa $PWD/apps/*/ebin $PWD/deps/*/ebin -boot start_sasl -s lager -s horst
erl -sname horst -setcookie nocookie -pa $PWD/apps/*/ebin $PWD/deps/*/ebin -boot start_sasl -s lager -s horst -config app
1 change: 1 addition & 0 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
{deps, [
{lager, ".*", {git, "[email protected]:basho/lager.git", "master"}},
{lager_syslog, ".*", {git, "[email protected]:basho/lager_syslog.git", "master"}},
{gpio, ".*", {git, "[email protected]:ulfa/gpio.git", "master"}},
{sue, "0.2.*", {git, "[email protected]:ulfa/sue.git", "master"}},
{gen_smtpc, ".*", {git, "[email protected]:0xAX/gen_smtpc.git", "master"}},
Expand Down

0 comments on commit 9873a5a

Please sign in to comment.