2017 © Pedro Peláez
 

yii2-extension yii2-redis-log

redis log extension of yii2

image

cann/yii2-redis-log

redis log extension of yii2

  • Friday, February 9, 2018
  • by cann
  • Repository
  • 2 Watchers
  • 2 Stars
  • 345 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 170 % Grown

The README.md

Redis Logger Of Yii2

安装
    composer require cann/yii2-redis-log
配置
    // ***
    'components' => [
        'log' => [
            'targets' => [
                'redis' => [
                    'class' => 'cann\yii\log\RedisTarget',
                    'redis' => 'redis',
                    'key' => 'default',
                    'levels' => ['trace', 'info'],
                    'categories' => ['yii\*'],
                ]
            ]
        ],
    ]

key 用于区分不同的Redis队列, (*1)

将redis中的日志落地至数据库

如果要将 keydefault的Redis Log导入数据库:, (*2)

    yii log-handler/export-to-db default

如果要将所有Redis Log导入数据库:, (*3)

    yii log-handler/export-all-to-db

你可以将该命令写入crontab定期执行, (*4)

log handler会自动创建log表,表名默认为 {db prefix}_log_{key}, (*5)

The Versions

09/02 2018

dev-master

9999999-dev

redis log extension of yii2

  Sources   Download

MIT

The Requires

 

by Avatar cann

framework yii2 project template basic

09/02 2018

v1.2.4

1.2.4.0

redis log extension of yii2

  Sources   Download

MIT

The Requires

 

by Avatar cann

framework yii2 project template basic

10/01 2018

v1.2.3

1.2.3.0

redis log extension of yii2

  Sources   Download

MIT

The Requires

 

by Avatar cann

framework yii2 project template basic

09/01 2018

v1.2.2

1.2.2.0

redis log extension of yii2

  Sources   Download

MIT

The Requires

 

by Avatar cann

framework yii2 project template basic

18/10 2017

v1.2.1

1.2.1.0

redis log extension of yii2

  Sources   Download

MIT

The Requires

 

by Avatar cann

framework yii2 project template basic

17/10 2017

v1.2

1.2.0.0

redis log extension of yii2

  Sources   Download

MIT

The Requires

 

by Avatar cann

framework yii2 project template basic