forked from cybergrind/rebar-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
project_app.config
45 lines (42 loc) · 1.81 KB
/
project_app.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
%% -*- erlang -*-
[{sasl, [
%% minimize shell error logging
{sasl_error_logger, tty},
%% only report errors
{errlog_type, error},
%% define the parameters of the rotating log
%% the log file directory
{error_logger_mf_dir, "log"},
%% # bytes per logfile
{error_logger_mf_maxbytes, 10485760}, % 10 MB
%% maximum number of logfiles
{error_logger_mf_maxfiles, 10}
]},
{lager, [
%% Whether to write a crash log, and where. Undefined means no crash logger.
{crash_log, "log/crash.log"},
%% Maximum size in bytes of events in the crash log - defaults to 65536
{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},
%% 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"},
%% Number of rotated crash logs to keep, 0 means keep only the
%% current one - default is 0
{crash_log_count, 0},
%% Whether to redirect error_logger messages into lager - defaults to true
{error_logger_redirect, true},
{async_threshold, 20},
{async_threshold_window, 5},
{error_logger_hwm, 200},
{handlers, [
{lager_console_backend, [info, true]},
{lager_file_backend, [
{"log/error.log", error, 104857600, "$D0", 2},
{"log/console.log", info, 104857600, "$D0", 2}
]}
]}
]}
].