diff options
Diffstat (limited to 'settings/templates/admin.php')
-rw-r--r-- | settings/templates/admin.php | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php index e3fd60fefce..38c6042c82a 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -10,8 +10,8 @@ $levels=array('Debug','Info','Warning','Error','Fatal'); echo $form; };?> <fieldset class="personalblock"> - <legend><strong><?php echo $l->t('Log level');?></strong></legend> - <select name='loglevel' id='loglevel'> + <legend><strong><?php echo $l->t('Log');?></strong></legend> + Log level: <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']):?> @@ -19,4 +19,23 @@ $levels=array('Debug','Info','Warning','Error','Fatal'); <?php endif; endfor;?> </select> + <table id='log'> + <?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 OC_Util::formatDate($entry->time);?> + </td> + </tr> + <?php endforeach;?> +</table> +<input id='moreLog' type='button' value='<?php echo $l->t('More');?>...'></input> </fieldset> |