PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Uldis Nelsons   D3 Logger   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: D3 Logger
Log messages to files that rotate up to a limit
Author: By
Last change:
Date: 5 months ago
Size: 481 bytes
 

Contents

Class file image Download

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']);