Show logs through the web interface

This commit is contained in:
Gilles Crettenand
2015-06-04 09:35:17 +02:00
parent 164c1c78b3
commit dccbbb98e5
6 changed files with 72 additions and 17 deletions

15
logs.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
namespace BSR;
use BSR\Lib\Formatter\Html;
use BSR\Lib\Logger;
require_once('Lib/autoloader.php');
$logs = Logger::getLastLogs();
echo Html::template(array(
'title' => 'Logs',
'content' => "<pre>$logs</pre>",
));