title: How to inject a service in another service in Symfony?
body: <p>I am trying to use the logging service in another service in order to trouble shoot that service.</p>
  
  <p>My config.yml looks like this:</p>
  
  <pre><code>services:
      userbundle_service:
          class:        Main\UserBundle\Controller\UserBundleService
          arguments: [@security.context]
  
      log_handler:
          class: %monolog.handler.stream.class%
          arguments: [ %kernel.logs_dir%/%kernel.environment%.jini.log ]
  
  
      logger:
          class: %monolog.logger.class%
          arguments: [ jini ]
          calls: [ [pushHandler, [@log_handler]] ]
  </code></pre>
  
  <p>This works fine in controllers etc. however I get no out put when I use it in other services.</p>
  
  <p>Any tips?</p>