Permalink
Browse files

Moved for alog to lager.

  • Loading branch information...
1 parent 906e00b commit e1befae5293a0d5c07d5a2b328eb3bfcc2618b2e @Licenser Licenser committed Jun 12, 2012
Showing with 23 additions and 22 deletions.
  1. +1 −1 apps/snarl/src/snarl.app.src
  2. +2 −2 rebar.config
  3. +18 −19 rel/files/sys.config
  4. +2 −0 rel/reltool.config
@@ -7,7 +7,7 @@
kernel,
stdlib,
redgrid,
- alog,
+ lager,
gproc,
redo,
crypto,
View
@@ -1,10 +1,10 @@
{lib_dirs, ["deps", "apps"]}.
-{erl_opts, [{i, "apps"}, {i,"deps"}, {i, "../../deps/alog/include"}, debug_info]}.
+{erl_opts, [{i, "apps"}, {i,"deps"}, {i, "../../deps/alog/include"}, debug_info,{parse_transform, lager_transform}]}.
{sub_dirs, ["rel", "apps/snarl"]}.
{deps,
[
{uuid, ".*", {git, "http://git.gitorious.org/avtobiff/erlang-uuid.git", {tag, "0.2.1"}}},
{gproc, ".*", {git, "http://github.com/uwiger/gproc.git", {tag, "v0.2.10"}}},
{redgrid, ".*", {git, "http://github.com/Licenser/redgrid.git", {branch, master}}},
- {alog, ".*", {git, "http://github.com/siberian-fast-food/alogger.git", {branch, "master"}}}
+ {lager, ".*", {git, "git://github.com/basho/lager.git", {tag, "1.0.0"}}}
]}.
View
@@ -1,10 +1,4 @@
-[{sasl, [{sasl_error_logger, {file, "/var/log/fifo/snarl-error.log"}},
- {errlog_type, error},
- {error_logger_mf_dir, "/var/log/snarl"}, % Log directory
- {error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
- {error_logger_mf_maxfiles, 5} % 5 files max
- ]},
- {gproc,
+[{gproc,
[{gproc_dist, all}]},
{redgrid,
[
@@ -15,16 +9,21 @@
{version, ""},
{local_ip, "_OWN_IP_"}
]},
- {alog,
- [
- {enabled_loggers, [alog_tty]},
- {flows,
- [
- {{mod,['_']}, {'=<', warning},
- [alog_tty,
- {alog_disk_log,
- [{name, snarl_warn},
- {file, "/var/log/fifo/snarl_warn.log"}]}]}
- ]}
- ]}
+ {lager,
+ [{handlers, [
+ {lager_console_backend, info},
+ {lager_file_backend, [{"/var/log/fifo/chunter/error.log", error},
+ {"/var/log/fifo/chunter/warning.log", warning},
+ {"/var/log/fifo/chunter/debug.log", debug},
+ {"/var/log/fifo/chunter/console.log", info}
+ ]}
+ ]},
+ {crash_log, "{{platform_log_dir}}/crash.log"},
+ {crash_log_size, 65536},
+ {error_logger_redirect, true}
+ ]},
+ {alog,
+ [{enabled_loggers, [alog_tty]},
+ {flows,
+ [{{mod,['_']}, {'=<', warning}, [alog_tty]}]}]}
].
View
@@ -9,6 +9,7 @@
sasl,
parse_trans,
alog,
+ lager,
compiler,
syntax_tools,
edoc,
@@ -36,6 +37,7 @@
{app, kernel, [{incl_cond, include}]},
{app, parse_trans, [{incl_cond, include}]},
{app, alog, [{incl_cond, include}]},
+ {app, lager, [{incl_cond, include}]},
{app, edown, [{incl_cond, include}]},
{app, redgrid, [{incl_cond, include}]},
{app, gen_leader, [{incl_cond, include}]},

0 comments on commit e1befae

Please sign in to comment.