25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

39 satır
1.5 KiB

14 yıl önce
14 yıl önce
14 yıl önce
14 yıl önce
14 yıl önce
  1. %% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
  2. %% ex: ts=4 sw=4 et
  3. {application, lager,
  4. [
  5. {description, "Erlang logging framework"},
  6. {vsn, "0.9.0"},
  7. {modules, []},
  8. {applications, [
  9. kernel,
  10. stdlib
  11. ]},
  12. {registered, []},
  13. {mod, {lager_app, []}},
  14. {env, [
  15. %% What handlers to install with what arguments
  16. {handlers, [
  17. {lager_console_backend, info},
  18. {lager_file_backend, [
  19. {"log/error.log", error, 10485760, "", 5},
  20. {"log/console.log", info, 10485760, "", 5}
  21. ]}
  22. ]},
  23. %% Whether to write a crash log, and where. Undefined means no crash logger.
  24. {crash_log, "log/crash.log"},
  25. %% Maximum size in bytes of events in the crash log - defaults to 65536
  26. {crash_log_msg_size, 65536},
  27. %% Maximum size of the crash log in bytes, before its rotated, set
  28. %% to 0 to disable rotation - default is 0
  29. {crash_log_size, 10485760},
  30. %% What time to rotate the crash log - default is no time
  31. %% rotation. See the README for a description of this format.
  32. {crash_log_date, "$D0"},
  33. %% Number of rotated crash logs to keep, 0 means keep only the
  34. %% current one - default is 0
  35. {crash_log_count, 5},
  36. %% Whether to redirect error_logger messages into lager - defaults to true
  37. {error_logger_redirect, true}
  38. ]}
  39. ]}.