cherry-project/logs-viewer

Cherry-project Logs Viewer.

v1.0.0 2019-03-31 14:08 UTC

This package is auto-updated.

Last update: 2022-05-08 02:45:52 UTC


README

The Cherry-project Logs Viewer

GitHub license

GitHub release

Packagist Version

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