cherry-project / logs-viewer
Cherry-project Logs Viewer.
v1.0.0
2019-03-31 14:08 UTC
Requires
- php: >=5.6.0
This package is auto-updated.
Last update: 2024-12-08 08:30:14 UTC
README
The Cherry-project Logs Viewer
Including
Install from composer composer require cherry-project/logs-viewer
Include Autoloader in your main file (Ex.: index.php)
require_once __DIR__ . '/vendor/autoload.php';
Usage
Logs Viewer works only with Cherry Logger logs!
Import class
use Cherry\Log\LogViewer;
Define path to your logs
define('LOGS_PATH', __DIR__ . '/var/logs');
Note: If you use Cherry Core or Cherry Framework, path must defined in config file:
{ "LOGS_PATH": "var/logs" }
Crete class new object
$viewer = new LogViewer();
Finally you need to render the Log Viewer view:
$viewer->render();
2019 © Cherry-project