cmqlogroute The 'CMQLogRoute' is a Yii Framework Plugin that avoids to write log-messages to MQ-exchange.

CMQLogRoute Extension

  1. Requirements
  2. Installation
  3. Usage:
  4. Changelog:

The 'CMQLogRoute' is a Yii Framework Plugin that avoids to write log-messages to MQ-exchange.

Requirements

Installation

  • Unpack all files under your project 'extension' folder
  • Set up your log route in main.php configuration file:

'components' => array( ........

    ...

    'log' => array(
        'class' => 'CLogRouter',
        'routes' => array(

    ...

            array(
                'class' => 'application.extensions.MQLogRoute.CMQLogRoute',
                'enabled' => true,
                'levels' => 'info,error,warning',
                'mqID' => 'mq', // The name of component that represents camqp-extension.  You can use this extension: http://http://www.yiiframework.com/extension/amqp
                'mqExchange' => 'yiilog' // The name of MQ-exchange
            ),

........

    ...
        ),
    ),

........

  )

......

  • Enjoy! . .

    Usage:

Write log by standart Yii's method

Yii::log('Writing to MQ!');

Changelog:

1.0 - Initial release

4 0
2 followers
378 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Logging
Tags: 2GIS, amq, log
Developed by: a.spiridonov
Created on: Aug 25, 2011
Last updated: 13 years ago

Downloads

show all

Related Extensions