aboutsummaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-10-16 21:08:44 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-10-16 21:11:03 +0200
commitd9372ac76606cd10e680852dde090171f04f5dee (patch)
treee8bf84832ede4225cdefd839d0da8d2f1f294d64 /settings/templates
parent820cd0fb75bac88b4debe8f3fb28c1118b8587fa (diff)
downloadnextcloud-server-d9372ac76606cd10e680852dde090171f04f5dee.tar.gz
nextcloud-server-d9372ac76606cd10e680852dde090171f04f5dee.zip
make log level configurable
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/admin.php17
-rw-r--r--settings/templates/log.php2
2 files changed, 16 insertions, 3 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 98acd541e36..e3fd60fefce 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -2,8 +2,21 @@
* 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','Warning','Error','Fatal');
+?>
<?php foreach($_['forms'] as $form){
echo $form;
-};?> \ No newline at end of file
+};?>
+<fieldset class="personalblock">
+ <legend><strong><?php echo $l->t('Log level');?></strong></legend>
+ <select name='loglevel' id='loglevel'>
+ <option value='<?php echo $_['loglevel']?>'><?php echo $levels[$_['loglevel']]?></option>
+ <?php for($i=0;$i<5;$i++):
+ if($i!=$_['loglevel']):?>
+ <option value='<?php echo $i?>'><?php echo $levels[$i]?></option>
+ <?php endif;
+ endfor;?>
+ </select>
+</fieldset>
diff --git a/settings/templates/log.php b/settings/templates/log.php
index 467f594186c..bcf5258f5f5 100644
--- a/settings/templates/log.php
+++ b/settings/templates/log.php
@@ -3,7 +3,7 @@
* 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');
+$levels=array('Debug','Info','Warning','Error','Fatal');
?>
<div id="controls">