catchamonkey / console-logger-bundle
Symfony2 bundles that adds logging of exceptions thrown in console commands.
Installs: 1 538
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- symfony/framework-bundle: ~2.3
- symfony/monolog-bundle: ~2.3
Requires (Dev)
- phpspec/phpspec: ~2.0
This package is not auto-updated.
Last update: 2024-11-19 03:20:32 UTC
README
##CatchamonkeyConsoleLoggerBundle
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