catchamonkey / CatchamonkeyConsoleLoggerBundle

Adds logging of console exceptions to your Symfony2 application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##CatchamonkeyConsoleLoggerBundle

Build Status
Scrutinizer
SensioLabsInsight

Symfony2 bundles that adds logging of exceptions thrown in console commands

##Installation

Step 1) Download

Download the bundle using Composer:

composer require "catchamonkey/console-logger-bundle"

This will be installed into your vendor directory

Step 2) Register the Bundle in your kernel

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Catchamonkey\Bundle\ConsoleLoggerBundle\CatchamonkeyConsoleLoggerBundle(),
    );
}

And your done! You will now see that exceptions from console commands are logged at error level via monolog

About

Adds logging of console exceptions to your Symfony2 application


Languages

Language:PHP 100.0%