• Igor Wiedler's avatar
    MonologExtension for logging of requests and errors · 8022d089
    Igor Wiedler authored
    Sample usage:
    
    $app = new Application();
    
    $app->register(new MonologExtension(), array(
    	'monolog.class_path' => __DIR__.'/vendor/monolog/src',
    	'monolog.logfile' => __DIR__.'/application.log',
    ));
    
    $app->get('/hello', function() use ($app) {
    	$app['monolog']->addDebug('currently at hello');
    	return 'Hello World!';
    });
    
    $app->get('/error', function() {
    	throw new RuntimeException('Some error');
    });
    
    $app->run();
    8022d089
Name
Last commit
Last update
src/Silex Loading commit data...
tests Loading commit data...
vendor Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
autoload.php Loading commit data...
compile Loading commit data...
example.htaccess Loading commit data...
phpunit.xml.dist Loading commit data...