Skip to content

Commit

Permalink
Merge pull request #536 from paulo-ferraz-oliveira/feature/log_root_o…
Browse files Browse the repository at this point in the history
…n_crash_log

Allow log_root on crash_log
  • Loading branch information
jadeallenx authored Feb 4, 2021
2 parents c5aa779 + 3811baa commit 78bf3e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/lager.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@

]},

%% Where to write the logs
{log_root, "log"},
%% Whether to write a crash log, and where. False means no crash logger.
{crash_log, "log/crash.log"},
{crash_log, "crash.log"},
%% Maximum size in bytes of events in the crash log - defaults to 65536
{crash_log_msg_size, 65536},
%% Maximum size of the crash log in bytes, before its rotated, set
Expand Down
4 changes: 2 additions & 2 deletions src/lager_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
-define(DEFAULT_HANDLER_CONF,
[{lager_console_backend, [{level, info}]},
{lager_file_backend,
[{file, "log/error.log"}, {level, error},
[{file, "error.log"}, {level, error},
{size, 10485760}, {date, "$D0"}, {count, 5}]
},
{lager_file_backend,
[{file, "log/console.log"}, {level, info},
[{file, "console.log"}, {level, info},
{size, 10485760}, {date, "$D0"}, {count, 5}]
}
]).
Expand Down

0 comments on commit 78bf3e8

Please sign in to comment.