title: Pino logger custom destinations based on log level and logging on nodeJS console
body: <p>Im having a hard time logging on Stdout and logging in file. Is there a way to log on stdout based on log level and at the same time log in file?</p>
  <p>As of now, my code is currently logging on text file base on their current level. Example if the log is info, it will go to info.log, if error, it will go to error.log, however i want is both on text file and on nodejs console. but i cant achieve that.</p>
  <p>Here is my current code:</p>
  <pre><code>const levels = {
    error: 50,
    info: 20,
    debug: 10,
  };
  
  const streams = Object.keys(levels).map((level) =&gt; {
    return  {
      level: level,
      stream: fs.createWriteStream(`${__dirname}/app-${level}.log`, {
        flags: &quot;a&quot;,
      }),
    };
  });
  
  module.exports = pinoLogger(
    {
      level: &quot;info&quot;,
      customLevels: levels,
      useOnlyCustomLevels: true,
      formatters: {
        level: (label) =&gt; {
          return { level: label };
        },
      },
    },
    pinoms.multistream(streams, {
      levels,
      dedupe: true,
    })
  );
  </code></pre>
  <p>Testing code:</p>
  <pre><code>pinoLogger.error(&quot;Test 1&quot;);
  </code></pre>
  <p>This testing code is going to &quot;app-error.log&quot; w/c correct, however like what i have said, i want it to nodejs console too. Thankyou :)</p>