External configuration and supervisor child modules

This commit is contained in:
Fabio Salvini
2017-06-12 19:44:06 +02:00
parent 9a6464aa31
commit af8fad987d
6 changed files with 44 additions and 30 deletions

20
config/log_monitor.config Normal file
View File

@@ -0,0 +1,20 @@
[
{ log_monitor,
[
%% File where the list of monitored log files is stored.
%% WARNING: If you leave it inside /tmp, every time the node is restarted the log files will be lost.
{storage, "/tmp/logfiles"},
{email_config,
[
{sender, "log@monitor.com"},
{default_receiver, "salvini.fabio001@gmail.com"},
{connection, [
{relay, "smtp.fabiosalvinii.com"},
{username, "salvini.fabio001@gmail.com"},
{password, ""}]
}
]
}
]
}
].

View File

@@ -1,16 +1,4 @@
[
{ log_monitor,
[
{storage, "/tmp/logfiles"},
{email_config,
[
{sender, "me@example.com"},
{default_receiver, "salvini.fabio001@gmail.com"},
{relay, "smtp.fabiosalvinii.com"},
{username, "salvini.fabio001@gmail.com"},
{password, ""}
]
}
]
}
{ log_monitor, []
}, "/home/fsalvini/gitRepos/log_monitor/config/log_monitor.config"
].