Subject placeholder for first error line
This commit is contained in:
@@ -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, ""}]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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, [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user