Skip to content

Commit

Permalink
monolog
Browse files Browse the repository at this point in the history
  • Loading branch information
igorw committed May 11, 2011
1 parent 0b9d65d commit c5a3d33
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
Empty file added monolog/application.log
Empty file.
21 changes: 21 additions & 0 deletions monolog/index.php
@@ -0,0 +1,21 @@
<?php

require __DIR__.'/silex.phar';

$app = new Silex\Application();

$app->register(new Silex\Extension\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();
2 changes: 2 additions & 0 deletions monolog/vendors.sh
@@ -0,0 +1,2 @@
#!/bin/sh
git clone https://github.com/Seldaek/monolog.git vendor/monolog

0 comments on commit c5a3d33

Please sign in to comment.