Subject placeholder for first error line

This commit is contained in:
Fabio Salvini
2017-07-04 21:21:15 +02:00
parent bf31928336
commit dbeec61590
6 changed files with 32 additions and 20 deletions

View File

@@ -30,11 +30,12 @@
%% Placeholders:
%% %f: the full path of the log file (ex. /var/log/myapp.log).
%% %F: the basename of the log file (ex. myapp).
%% %l: the first error line.
{subject, "[%F] Error notification"},
{connection, [
{relay, "smtp.fabiosalvinii.com"},
{username, "salvini.fabio001@gmail.com"},
{relay, "smtp.nodomain.com"},
{username, ""},
{password, ""}]
}
]

View File

@@ -1,8 +1,9 @@
{monitored_logs, [
{
{group, "Test"},
{email_receivers, ["user@example.com"]},
{email_subject, "[%F] Error notification"},
{email_receivers, []},
{email_subject, "[%F] %l"},
%% Currently ignored
{default_error_regex, "Error"},
{logfiles, [
{