2017 © Pedro Peláez
 

yii2-extension yii2-mougrim-logger

Port mougrim/php-logger to Yii2

image

mougrim/yii2-mougrim-logger

Port mougrim/php-logger to Yii2

  • Monday, September 21, 2015
  • by Mougrim
  • Repository
  • 1 Watchers
  • 2 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

Repository is archived

If you want to maintain it, you can make a fork., (*1)

Mougrim logger port Extension for Yii 2

This extension provides using mougrim/php-logger (ex Mitallast Logger) in Yii 2 Framework., (*2)

This extension provides all logs expects profiling logs., (*3)

Latest Stable Version Latest Unstable Version License Build Status, (*4)

Benefits

mougrim/php-logger has next benefits: - flexible configuration; - interface like Apache log4php (with debug log level); - higher than yii2 logger performance., (*5)

For more information and benchmark result see benefits., (*6)

Installation

The preferred way to install this extension is through composer., (*7)

Either run, (*8)

php composer.phar require --prefer-dist mougrim/yii2-mougrim-logger

or add, (*9)

"mougrim/yii2-mougrim-logger": "*"

to the require section of your composer.json, then run php composer.phar update, (*10)

Configuration

To use this extension, you have to configure Logger in your application configuration:, (*11)

<?php
use Mougrim\Logger\Logger as MougrimLogger;
use mougrim\yii2Logger\Logger;
use yii\log\Logger as YiiLogger;
...
// change standard logger class
\Yii::$container->set(
    YiiLogger::class,
    [
        'class' => Logger::class,
    ]
);
// configure Mougrim Logger
MougrimLogger::configure(__DIR__ . '/logger.php');
// your config
return [
    ....
];

For configuration Mougrim Logger see documentation mougrim/php-logger., (*12)

If you want use Mougrim Logger and Yii Logger together, change your config:, (*13)

\Yii::$container->set(
    YiiLogger::class,
    [
        'class' => Logger::class,
        'alwaysYiiLoggerLog' => true,
    ]
);

May be you want use this way for correct working of debug panel., (*14)

The Versions

21/09 2015

dev-master

9999999-dev https://github.com/mougrim/yii2-mougrim-logger

Port mougrim/php-logger to Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Mougrim

logger yii2 yii2 logger yii2 mougrim logger mougrim logger

21/09 2015

v1.0.0

1.0.0.0 https://github.com/mougrim/yii2-mougrim-logger

Port mougrim/php-logger to Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Mougrim

logger yii2 yii2 logger yii2 mougrim logger mougrim logger