소스 검색

Default crash log entries to be a maxmimum of 64k

pull/4/merge
Andrew Thompson 14 년 전
부모
커밋
fbb0fda5d3
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +2
    -2
      src/lager.app.src
  2. +1
    -1
      src/lager_sup.erl

+ 2
- 2
src/lager.app.src 파일 보기

@ -22,8 +22,8 @@
]}, ]},
%% Whether to write a crash log, and where. Undefined means no crash logger. %% Whether to write a crash log, and where. Undefined means no crash logger.
{crash_log, "log/crash.log"}, {crash_log, "log/crash.log"},
%% Maximum size in bytes of events in the crash log - defaults to 4096
{crash_log_size, 4096},
%% Maximum size in bytes of events in the crash log - defaults to 65536
{crash_log_size, 65536},
%% Whether to redirect error_logger messages into lager - defaults to true %% Whether to redirect error_logger messages into lager - defaults to true
{error_logger_redirect, true} {error_logger_redirect, true}
]} ]}

+ 1
- 1
src/lager_sup.erl 파일 보기

@ -43,7 +43,7 @@ init([]) ->
{ok, File} -> {ok, File} ->
MaxBytes = case application:get_env(lager, crash_log_size) of MaxBytes = case application:get_env(lager, crash_log_size) of
{ok, Val} -> Val; {ok, Val} -> Val;
_ -> 4096
_ -> 65536
end, end,
[{lager_crash_log, {lager_crash_log, start_link, [File, MaxBytes]}, [{lager_crash_log, {lager_crash_log, start_link, [File, MaxBytes]},
permanent, 5000, worker, [lager_crash_log]}]; permanent, 5000, worker, [lager_crash_log]}];

불러오는 중...
취소
저장