title: Monolog doesn't log the entries in Symfony API Platform
body: <p>Following is my handler.</p>
  <pre><code>    use Psr\Log\LoggerInterface;
      use Entity\Import as ImportEntity;
      
      class ImportHandler {
           public function __construct(LoggerInterface $logger) {
                  $this-&gt;logger = $logger;
           }
           public function handle(ImportEntity $data): array {
              $this-&gt;logger-&gt;error(&quot;hi&quot;);
           }
      }
  </code></pre>
  <p>But \var\log\dev.log doesn't have this entry &quot;hi&quot;.</p>
  <pre><code>monolog:
      handlers:
          main:
              type: stream
              path: &quot;%kernel.logs_dir%/%kernel.environment%.log&quot;
              level: debug
              channels: [&quot;!event&quot;]
          # uncomment to get logging in your browser
          # you may have to allow bigger header sizes in your Web server configuration
          #firephp:
          #    type: firephp
          #    level: info
          #chromephp:
          #    type: chromephp
          #    level: info
          console:
              type: console
              process_psr_3_messages: false
              channels: [&quot;!event&quot;, &quot;!doctrine&quot;, &quot;!console&quot;]
  </code></pre>
  <p>This is my monolog configuration.</p>