2017 © Pedro Peláez
 

library yii-monolog

Monolog Yii Extension

image

smartapps-fr/yii-monolog

Monolog Yii Extension

  • Tuesday, October 13, 2015
  • by ddebin
  • Repository
  • 1 Watchers
  • 3 Stars
  • 180 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii-monolog

Monolog for Yii 1.*, (*1)

Inspired by baibaratsky/yii-rollbar., (*2)

Install

  • Add the Component to the preload list
'preload' => array(
    'monolog'
),
  • Configure the Component
'monolog' => array(
    'class' => 'application.vendor.smartapps-fr.yii-monolog.MonologComponent',
    'environment' => 'production',
    'syslog_identity' => 'SmartPublisher_Errors',
    //'stream_handler_filepath' => '/var/log/application.log',
    'use_json_formatter' => TRUE
),
  • Add LogRoute
'monolog' => array(
    'class' => 'application.vendor.smartapps-fr.yii-monolog.MonologLogRoute',
    'levels' => 'error, warning',
    'except' => array('exception.CHttpException.*')
),
  • Add Exception handler
'errorHandler' => array(
    'class' => 'application.vendor.smartapps-fr.yii-monolog.MonologErrorHandler',
),

The Versions

13/10 2015

dev-master

9999999-dev https://github.com/smartapps-fr/yii-monolog

Monolog Yii Extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Damien Debin

debug log monolog exception yii error monitoring