External configuration and supervisor child modules
This commit is contained in:
20
config/log_monitor.config
Normal file
20
config/log_monitor.config
Normal 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, ""}]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
].
|
||||
@@ -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"
|
||||
].
|
||||
|
||||
Reference in New Issue
Block a user