瀏覽代碼

Merge pull request #364 from redink/crash_log_undefined

mark for no crash log

Reviewed-by: JeetKunDoug
pull/375/head
Bishop Bors 8 年之前
committed by GitHub
父節點
當前提交
049f3a932f
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      README.md
  2. +1
    -1
      src/lager.app.src

+ 1
- 1
README.md 查看文件

@ -235,7 +235,7 @@ You can also disable reformatting for OTP and Cowboy messages by setting variabl
The `error_logger` handler will also log more complete error messages (protected The `error_logger` handler will also log more complete error messages (protected
with use of `trunc_io`) to a "crash log" which can be referred to for further with use of `trunc_io`) to a "crash log" which can be referred to for further
information. The location of the crash log can be specified by the crash_log information. The location of the crash log can be specified by the crash_log
application variable. If set to `undefined` it is not written at all.
application variable. If set to `false` it is not written at all.
Messages in the crash log are subject to a maximum message size which can be Messages in the crash log are subject to a maximum message size which can be
specified via the `crash_log_msg_size` application variable. specified via the `crash_log_msg_size` application variable.

+ 1
- 1
src/lager.app.src 查看文件

@ -30,7 +30,7 @@
]}, ]},
%% Whether to write a crash log, and where. Undefined means no crash logger.
%% Whether to write a crash log, and where. False 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 65536 %% Maximum size in bytes of events in the crash log - defaults to 65536
{crash_log_msg_size, 65536}, {crash_log_msg_size, 65536},

Loading…
取消
儲存