Skip to content
Sample symfony logger
PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
LICENSE
README.md

README.md

Configuration:

Add the following to the factories.yml under the loggers section:

redis_logger:
  class: RedisLogger
    param: 
      host: localhost
      port: 6379
      maxlogs: 1000

And in the ProjectConfiguration::setup() method

$this->enablePlugins('avRedisLoggerPlugin');

The logs will be pushed to a list with this key:

<?php $key = 'logs.'.gethostname(); ?>
Something went wrong with that request. Please try again.