Use Mnesia to store monitored log files

This commit is contained in:
Fabio Salvini
2017-06-15 23:40:27 +02:00
parent af8fad987d
commit 9b13aa6cbc
3 changed files with 102 additions and 33 deletions

View File

@@ -1,9 +1,6 @@
[
{ 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"},
@@ -16,5 +13,12 @@
]
}
]
},
%% Directory where the application data is stored.
%% WARNING: If you leave it inside /tmp, every time the node is restarted the
%% application will reset.
{ mnesia , [
{dir, "/tmp/mnesia"}
]
}
].