title: Using express-pino-logger and pino-pretty together
body: <p>I'm have existing code that uses <a href="https://github.com/pinojs/express-pino-logger" rel="noreferrer">express-pino-logger</a>. This words great with our ELK stack setup, but is pretty unfortunate (logs minified JSON) when running locally.</p>
  
  <p>I'd like to use <a href="https://github.com/pinojs/pino-pretty" rel="noreferrer">pino-pretty</a> to make local use not a pain.</p>
  
  <p>There is an alternative in <a href="https://www.npmjs.com/package/pino-pretty-express" rel="noreferrer">pino-pretty-express</a> that solves the problem, but uses its own pretty formatter. I'd like to use the standard packages from pinojs if I could.</p>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>// with just pino-pretty installed, pino works out of the box
  const pino = require('pino')
  const logger = pino({
    prettyPrint: true
  })
  
  logger.info('hi') // prints pretty
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>// adding this option to express-pino-logger, doesn't work
  const pino = require('express-pino-logger')
  const logger = pino({
    prettyPrint: true
  })
  
  logger.info('hi') // does NOT print pretty
  </code></pre>