-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathapp.config
60 lines (54 loc) · 2.63 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[
{erlasticsearch, [
%% Default worker timeout, can be overridden in CT
%% to account for slower "local" ES
{worker_timeout, 5000}
%% These options are passed to poolboy
% {pool_name, <<"default_erlasticsearch_pool">>},
% {pool_options, [{size, 5},
% {max_overflow, 10}
% ]},
%% These options are passed to Thrift
% {connection_options, [{thrift_host, "localhost"},
% {thrift_port, 9500},
% {thrift_options, [{framed, false}]},
% {binary_response, true},
% {default_thrift_refresh, 60000}
% ]}
% ]}
]},
{lager, [
%% What handlers to install with what arguments
%% The defaults for the logfiles are to rotate the files when
%% they reach 10Mb or at midnight, whichever comes first, and keep
%% the last 5 rotations. See the lager README for a description of
%% the time rotation format:
%% https://github.com/basho/lager/blob/master/README.org
%%
%% If you wish to disable rotation, you can either set the size to 0
%% and the rotation time to "", or instead specify a 2-tuple that only
%% consists of {Logfile, Level}.
{handlers, [
{lager_console_backend, [debug, true]},
{lager_file_backend, [{file, "error.log"}, {level, debug}]},
{lager_file_backend, [{file, "console.log"}, {level, debug}]}
]},
%% Whether to write a crash log, and where.
%% Commented/omitted/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 lager README for a description of this format:
%% https://github.com/basho/lager/blob/master/README.org
{crash_log_date, "$D0"},
%% Number of rotated crash logs to keep, 0 means keep only the
%% current one - default is 0
{crash_log_count, 5},
%% Whether to redirect error_logger messages into lager - defaults to true
{error_logger_redirect, true}
]}
].