original_string: public function register(Application $app)
      {
          $this->config = $app['config']->load('log');
  
          $handlers = $this->getHandlers($app);
          $app['log'] = $app->share(function ($app) use ($handlers) {
              return new Logger('main', $handlers);
          });
  
          $app->initializer('Synapse\\Log\\LoggerAwareInterface', function ($object, $app) {
              $object->setLogger($app['log']);
              return $object;
          });
      }
code: public function register(Application $app)
      {
          $this->config = $app['config']->load('log');
  
          $handlers = $this->getHandlers($app);
          $app['log'] = $app->share(function ($app) use ($handlers) {
              return new Logger('main', $handlers);
          });
  
          $app->initializer('Synapse\\Log\\LoggerAwareInterface', function ($object, $app) {
              $object->setLogger($app['log']);
              return $object;
          });
      }
code_tokens: public function register ( Application $ app ) { $ this -> config = $ app [ 'config' ] -> load ( 'log' ) ; $ handlers = $ this -> getHandlers ( $ app ) ; $ app [ 'log' ] = $ app -> share ( function ( $ app ) use ( $ handlers ) { return new Logger ( 'main' , $ handlers ) ; } ) ; $ app -> initializer ( 'Synapse\\Log\\LoggerAwareInterface' , function ( $ object , $ app ) { $ object -> setLogger ( $ app [ 'log' ] ) ; return $ object ; } ) ; }
docstring: Register logging related services
  
  @param  Application $app Silex application
docstring_tokens: Register logging related services