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