summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-10-16 20:49:14 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-10-16 21:11:03 +0200
commit820cd0fb75bac88b4debe8f3fb28c1118b8587fa (patch)
tree703f54b527bd6ae822d7c1c2e030e544791679a5 /settings/templates
parentd11a8f4103c4de974f2f52c30defaeb7c1055819 (diff)
downloadnextcloud-server-820cd0fb75bac88b4debe8f3fb28c1118b8587fa.tar.gz
nextcloud-server-820cd0fb75bac88b4debe8f3fb28c1118b8587fa.zip
provide a logging mechanism
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/log.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/settings/templates/log.php b/settings/templates/log.php
new file mode 100644
index 00000000000..467f594186c
--- /dev/null
+++ b/settings/templates/log.php
@@ -0,0 +1,29 @@
+<?php /**
+ * Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
+ * This file is licensed under the Affero General Public License version 3 or later.
+ * See the COPYING-README file.
+ */
+$levels=array('DEBUG','INFO','WARN','ERROR','FATAL');
+?>
+
+<div id="controls">
+
+</div>
+<table>
+ <?php foreach($_['entries'] as $entry):?>
+ <tr>
+ <td>
+ <?php echo $levels[$entry->level];?>
+ </td>
+ <td>
+ <?php echo $entry->app;?>
+ </td>
+ <td>
+ <?php echo $entry->message;?>
+ </td>
+ <td>
+ <?php echo $l->l('datetime',$entry->time);?>
+ </td>
+ </tr>
+ <?php endforeach;?>
+</table> \ No newline at end of file