Example #1
0
 public function createApplication()
 {
     $app = new MonologApplication();
     $app->register(new MonologServiceProvider(), array('monolog.handler' => function () use($app) {
         return new TestHandler($app['monolog.level']);
     }, 'monolog.logfile' => 'php://memory'));
     return $app;
 }
Example #2
0
 public function createApplication()
 {
     $app = new MonologApplication();
     $app->register(new MonologServiceProvider(), array('monolog.handler' => $app->share(function () use($app) {
         return new TestHandler($app['monolog.level']);
     })));
     return $app;
 }