2017 © Pedro Peláez
 

symfony-bundle monolog-db-bundle

Monolog handler for logging to a database table

image

itk-dev/monolog-db-bundle

Monolog handler for logging to a database table

  • Tuesday, February 6, 2018
  • by rimi-itk
  • Repository
  • 3 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 33 % Grown

The README.md

Monolog db bundle

Write log entries to a database., (*1)

Installation:, (*2)

composer require itk-dev/monolog-db-bundle "^1.0"

Add bundle in your AppKernel.php:, (*3)

    public function registerBundles()
    {
        $bundles = [
            …,
            new ItkDev\MonologDbBundle\ItkDevMonologDbBundle(),
            …
        ];

        …
    }

Configuration:, (*4)

monolog:
    channels: ['db']
    handlers:
        db:
            channels: ['db']
            type: service
            id: itk_dev.monolog.db_handler

Usage:, (*5)

…
$logger = $container->get('monolog.logger.db');
$logger->info($message);
…

Entries logged have a type property which can be used for filtering entries. The type can be set by adding the type key to the logging context:, (*6)

$logger->info($message, [
  'type' => 'my_log_entry',
]);

Command:, (*7)

bin/console itk-dev:monolog-db:show --help

The Versions

06/02 2018

dev-master

9999999-dev

Monolog handler for logging to a database table

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikkel Ricky

06/02 2018

1.0.1

1.0.1.0

Monolog handler for logging to a database table

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikkel Ricky

06/02 2018

1.0.0

1.0.0.0

Monolog handler for logging to a database table

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikkel Ricky