summaryrefslogtreecommitdiffstats
path: root/dovecot-logfile-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-05-26 22:37:03 +0000
committerTed Trask <ttrask01@yahoo.com>2014-05-26 22:37:03 +0000
commit3a3ff6452f6a59a0af47587174ecd2bcfe9c1219 (patch)
treeb3166dc0a82b4d6c4d01d2c0c45f0bc710236748 /dovecot-logfile-html.lsp
parentfe73a1516a76911e67dd43a702cacfefd0932c43 (diff)
downloadacf-dovecot-3a3ff6452f6a59a0af47587174ecd2bcfe9c1219.tar.bz2
acf-dovecot-3a3ff6452f6a59a0af47587174ecd2bcfe9c1219.tar.xz
Added capability to read logfiles from config.
Diffstat (limited to 'dovecot-logfile-html.lsp')
-rw-r--r--dovecot-logfile-html.lsp4
1 files changed, 3 insertions, 1 deletions
diff --git a/dovecot-logfile-html.lsp b/dovecot-logfile-html.lsp
index 53a76ce..d718396 100644
--- a/dovecot-logfile-html.lsp
+++ b/dovecot-logfile-html.lsp
@@ -2,5 +2,7 @@
%>
<% if viewlibrary and viewlibrary.dispatch_component then
- viewlibrary.dispatch_component("alpine-baselayout/logfiles/view", {filename="/var/log/messages", grep="dovecot"})
+ for i,logfile in ipairs(data.value) do
+ viewlibrary.dispatch_component("alpine-baselayout/logfiles/view", {filename=logfile.path, grep=logfile.grep})
+ end
end %>