title: Symfony - monolog specific handler
body: <p>I am building a e-commerce application under symfony 4.0.
  The application is getting complex and I want to log the process.
  I would like to log it in a specific log file.</p>
  
  <p>For that I have create a new monolog handler :
  monolog.yaml :</p>
  
  <pre><code>monolog:
      handlers:
          main:
              type: stream
              path: "%kernel.logs_dir%/%kernel.environment%.log"
              level: debug
              channels: ["!event"]
          youshoes:
              level: info
              type: stream
              path: "%kernel.logs_dir%/%kernel.environment%YOUSHOES.log"
              channels: [youshoes]
      channels: ["main", "youshoes"]
  </code></pre>
  
  <p>How can I use this log now. for example :</p>
  
  <pre><code> $logger-&gt;info('Client has validated is cart');
   $logger-&gt;info('Payment is successful');
   $logger-&gt;info('Client is requesting for deliveries');
  etc ....
  </code></pre>
  
  <p>To be in the right log file..</p>
  
  <p>Thanks a lot for your help.</p>
  
  <p>Pierre.</p>