Skip to content

JackyChan/yii2-redis-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Redis Log for Yii 2

Requirements

At least redis version 2.6.12 is required for all components to work properly.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist jacky/yii2-redis-log

or add

"jackychan/yii2-redis-log": "~2.0.0"

to the require section of your composer.json.

Configuration

To use this extension, you have to configure the Connection class in your application configuration:

return [
    //....
    'components' => [
        'log' => [
            'targets' => [
				'redis' => [
					'class' => 'jc\yii\redis\RedisTarget',
					'redis' => 'redis',
					'levels' => ['trace', 'info'],
					'categories' => ['yii\*'],
				]
			]
        ],
    ]
];

About

store log messages to redis

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages