2017 © Pedro Peláez
 

library yii2-log

yii2-log

image

monsterhunter/yii2-log

yii2-log

  • Tuesday, August 15, 2017
  • by monster-hunter
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,132 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 14 % Grown

The README.md

Latest Stable Version Total Downloads License StyleCI Build Status Scrutinizer Code Quality Code Coverage Build Status, (*1)

Yii2 Log Module

Run migrations

  php yii migrate --migrationPath=@yii/log/migrations/

Config backend module

'modules'=> [
    'log' => [
        'class' => 'monsterhunter\yii2\log\Module',
        //'layout' =>'@app/views/layouts/main'  //custom layout  
    ]
]

Config log compoennt

'components' => [
    'log' => [
        'traceLevel' => YII_DEBUG ? 3 : 0,
        'targets' => [
            [
                'class' => 'yii\log\DbTarget',
                'levels' => ['error', 'warning'],
                'except' => ['yii\web\HttpException:404'],
                'prefix' => function () {
                    $url = !Yii::$app->request->isConsoleRequest ? Yii::$app->request->getUrl() : null;
                    return sprintf('[%s][%s]', Yii::$app->id, $url);
                },
                'logVars' => [],
                'logTable' => '{{%system_log}}'
            ],
        ],
    ],
]

The Versions

15/08 2017

dev-master

9999999-dev

yii2-log

  Sources   Download

MIT

The Requires

 

The Development Requires

by monsterhunter

25/07 2017

0.1.2

0.1.2.0

yii2-log

  Sources   Download

MIT

by monsterhunter

22/07 2017

0.1.1

0.1.1.0

yii2-log

  Sources   Download

MIT

by monsterhunter