Permalink
Browse files

Finalized move from alog to lager.

  • Loading branch information...
1 parent 42a3023 commit bad93e6152f675c13a556b9d6276609fcfc0b672 @Licenser Licenser committed Jun 13, 2012
Showing with 19 additions and 14 deletions.
  1. +1 −1 rebar.config
  2. +18 −13 rel/files/sys.config
View
@@ -1,5 +1,5 @@
{lib_dirs, []}.
-{erl_opts, [{i, "apps"}, {i,"deps"}, {i, "../../deps/alog/include"}, {i, "../../deps/cowboy/include"}, {i, "../deps/alog/include"}, debug_info]}.
+{erl_opts, [{i, "apps"}, {i,"deps"}, {i, "../../deps/alog/include"}, {i, "../../deps/cowboy/include"}, {i, "../deps/alog/include"}, debug_info, {parse_transform, lager_transform}]}.
{sub_dirs, ["rel", "apps/wiggle"]}.
{deps,
[
View
@@ -1,9 +1,4 @@
-[{sasl, [{sasl_error_logger, {file, "/var/log/fifo/wiggle/sasl_error.log"}},
- {errlog_type, error},
- {error_logger_mf_dir, "/var/log/fifo/wiggle"}, % Log directory
- {error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
- {error_logger_mf_maxfiles, 5} % 5 files max
- ]},
+[
{gproc, [{gproc_dist, all}]},
{redgrid,
[{url, "_REDIS_URL_"},
@@ -19,11 +14,21 @@
{session_name, <<"wiggle">>},
{session_key, <<"0123456789ABCDEF">>}
]},
- {alog, [{enabled_loggers, [alog_tty, alog_disk_log]},
- {flows, [{{mod,['_']}, {'=<', warning},
- [alog_tty, wiggle_warn]}
- ]},
- {alog_disk_log, [{name, wiggle_warn},
- {file, "/var/log/fifo/wiggle/wiggle-warn.log"}]}
- ]}
+ {lager,
+ [{handlers, [
+ {lager_console_backend, info},
+ {lager_file_backend, [{"/var/log/fifo/wiggle/error.log", error},
+ {"/var/log/fifo/wiggle/warning.log", warning},
+ {"/var/log/fifo/wiggle/debug.log", debug},
+ {"/var/log/fifo/wiggle/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]}]}]}
].

0 comments on commit bad93e6

Please sign in to comment.