sylletka / yii2-log
This extension provides pages to browse the logs stored in database
Installs: 65
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- 2amigos/yii2-date-time-picker-widget: ~1.0
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2025-01-18 21:41:41 UTC
README
This module provides a simple way to view the log entries stored in database via yii\log\DbTarget
##Install
-
configure at least one log target as a DbTarget
... 'log' => [ ... 'targets' => [ [ 'class' => 'yii\log\DbTarget', 'levels' => ['error', 'warning'], ], ], ... ], ...
Please refer to The definitive guide about Yii 2, in the chapter about logging and to the reference documentation about the class DbTarget to get further information about logging and logging storage in database with Yii2.
-
enable the module in config file
<?php ...... 'modules' => [ 'log' => [ 'class' => 'sylletka\log\Module', ], ], ......
##Usage
point to /log to browse the Log entries