d3yii2/d3logger

D3 logger


Keywords
system, yii2
License
BSD-4-Clause

Documentation

Installation

create Monolog logs in runtime directory

composer require d3yii2/d3logger dev-master

In configuration file define only path

        'myLoggel=r' => [
            'class' => 'd3logger\D3Monolog',
            'name' => 'myLogger',
            'fileName' => 'robotex',
            'directory' => 'devices',
            'maxFiles' => 7,
        ],

Ussage

use d3logger\D3Monolog;

Yii::$app->myLogger->info('ok',['a','b']);