Moved constants to configuration file
This commit is contained in:
@@ -4,12 +4,19 @@
|
||||
{email_config,
|
||||
[
|
||||
{sender, "log@monitor.com"},
|
||||
|
||||
%% The receiver to use for all the groups that do not specify any receiver.
|
||||
{default_receiver, "salvini.fabio001@gmail.com"},
|
||||
|
||||
%% The receiver to use for the application errors.
|
||||
{admin_receiver, "salvini.fabio001@gmail.com"},
|
||||
|
||||
%% Subject of the email.
|
||||
%% Placeholders:
|
||||
%% %f: the full path of the log file (ex. /var/log/myapp.log).
|
||||
%% %F: the basename of the log file (ex. myapp).
|
||||
{subject, "[%F] Error notification"},
|
||||
|
||||
{connection, [
|
||||
{relay, "smtp.fabiosalvinii.com"},
|
||||
{username, "salvini.fabio001@gmail.com"},
|
||||
@@ -17,9 +24,23 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{processing_config,
|
||||
[
|
||||
%% How long to gather log lines after an error occurs.
|
||||
%% If another error occurs, the time is reset.
|
||||
{gathering_time, 1000},
|
||||
|
||||
%% Max time for gathering log lines.
|
||||
%% Precaution in case of infinite consecutive errors.
|
||||
{max_gathering_time, 30000}
|
||||
]
|
||||
},
|
||||
|
||||
%% Location of the file that contains the logs to monitor.
|
||||
{logfiles_config, "/home/fsalvini/gitRepos/log_monitor/config/logfiles.config"}
|
||||
]
|
||||
},
|
||||
|
||||
%% Directory where the application data is stored.
|
||||
%% WARNING: If you leave it inside /tmp, every time the node is restarted the
|
||||
%% application will reset.
|
||||
|
||||
Reference in New Issue
Block a user