title: Logging both in SSR and client side in SvelteKit routes and components
body: <p>What kind of a logging solution could be a good fit in SvelteKit if server-side rendering must be enabled?</p>
  <ul>
  <li><p>Configurable logging levels</p>
  </li>
  <li><p>Logs to a file/stdout when server-side rendering is run with Node.js adapter</p>
  </li>
  <li><p>Logs to a console if any logging statements are encountered in client-side processing</p>
  </li>
  <li><p>Log level filters, timestamp, coloring and such features that are useful for dianogtics (otherwise console.log would be sufficient)</p>
  </li>
  </ul>
  <p>I am aware of multiple JavaScript logging solutions like Winston, but I am not sure if they are very good fit for SvelteKit model.</p>