dreamzml/yii2-logs-analysis

log analysis

dev-master 2018-03-03 10:30 UTC

This package is not auto-updated.

Last update: 2024-05-12 01:59:59 UTC


README

This Module Extension for Yii 2, Small teams, multi project development, testing model

For license information check the LICENSE-file.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require dreamzml/yii2-logs-analysis

or add

"dreamzml/yii2-logs-analysis": "*"

to the require-dev section of your composer.json file.

Usage

Once the extension is installed, simply modify your application configuration as follows:

return [
    'modules' => [
        'analysis' => [
            'class'      => 'dreamzml\LogAnalysis\Module',
            'allowedIPs' => ['127.0.0.1', '::1'],          // if set ['*'] allow all ip
            'monitors'   => ['admin'=>'123456'],           //allow users, if set * allow all user
        ],
    ],
    // ...
];

You can then access Gii through the following URL:

http://localhost/path/to/index.php?r=analysis

or if you have enabled pretty URLs, you may use the following URL:

http://localhost/path/to/index.php/analysis