Do not forget to re-define the crash.log path

This commit is contained in:
Evgeniy Khramtsov 2013-07-15 11:49:28 +10:00
parent 8482641b4e
commit 986f4d1a7f
1 changed files with 2 additions and 0 deletions

View File

@ -67,11 +67,13 @@ start() ->
ConsoleLog = get_log_path(),
Dir = filename:dirname(ConsoleLog),
ErrorLog = filename:join([Dir, "error.log"]),
CrashLog = filename:join([Dir, "crash.log"]),
application:set_env(
lager, handlers,
[{lager_console_backend, info},
{lager_file_backend, [{file, ConsoleLog}, {level, info}, {count, 1}]},
{lager_file_backend, [{file, ErrorLog}, {level, error}, {count, 1}]}]),
application:set_env(lager, crash_log, CrashLog),
ejabberd:start_app(lager),
ok.