25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.8 KiB

14 년 전
6 년 전
14 년 전
14 년 전
14 년 전
14 년 전
  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, "3.6.9"},
  7. {modules, []},
  8. {applications, [
  9. kernel,
  10. stdlib,
  11. goldrush
  12. ]},
  13. {registered, [lager_sup, lager_event, lager_crash_log, lager_handler_watcher_sup]},
  14. {mod, {lager_app, []}},
  15. {env, [
  16. %% Note: application:start(lager) overwrites previously defined environment variables
  17. %% thus declaration of default handlers is done at lager_app.erl
  18. %% What colors to use with what log levels
  19. {colored, false},
  20. {colors, [
  21. {debug, "\e[0;38m" },
  22. {info, "\e[1;37m" },
  23. {notice, "\e[1;36m" },
  24. {warning, "\e[1;33m" },
  25. {error, "\e[1;31m" },
  26. {critical, "\e[1;35m" },
  27. {alert, "\e[1;44m" },
  28. {emergency, "\e[1;41m" }
  29. ]},
  30. %% Whether to write a crash log, and where. False means no crash logger.
  31. {crash_log, "log/crash.log"},
  32. %% Maximum size in bytes of events in the crash log - defaults to 65536
  33. {crash_log_msg_size, 65536},
  34. %% Maximum size of the crash log in bytes, before its rotated, set
  35. %% to 0 to disable rotation - default is 0
  36. {crash_log_size, 10485760},
  37. %% What time to rotate the crash log - default is no time
  38. %% rotation. See the README for a description of this format.
  39. {crash_log_date, "$D0"},
  40. %% Number of rotated crash logs to keep, 0 means keep only the
  41. %% current one - default is 0
  42. {crash_log_count, 5},
  43. %% Crash Log Rotator Module - default is lager_rotator_default
  44. {crash_log_rotator, lager_rotator_default},
  45. %% Whether to redirect error_logger messages into the default lager_event sink - defaults to true
  46. {error_logger_redirect, true},
  47. %% How many messages per second to allow from error_logger before we start dropping them
  48. {error_logger_hwm, 50},
  49. %% How big the gen_event mailbox can get before it is
  50. %% switched into sync mode. This value only applies to
  51. %% the default sink; extra sinks can supply their own.
  52. {async_threshold, 20},
  53. %% Switch back to async mode, when gen_event mailbox size
  54. %% decrease from `async_threshold' to async_threshold -
  55. %% async_threshold_window. This value only applies to the
  56. %% default sink; extra sinks can supply their own.
  57. {async_threshold_window, 5}
  58. ]},
  59. {licenses, ["Apache 2"]},
  60. {links, [{"Github", "https://github.com/erlang-lager/lager"}]}
  61. ]}.