title: How to pass variadic function parameters to another function in C++ (specifically std::format)?
body: <p>I'm trying to write a logger that can take arguments the same way that <code>printf</code> does with formatting supported. I'm planning to just call <code>std::format</code> on the input to my logger, but I need to forward the variadic args to <code>std::format</code>. How can I do that?</p>
  <p>What I want it too look like:</p>
  <pre><code>void log(const std::string&amp; msg)
  {
    std::cout &lt;&lt; msg &lt;&lt; std::endl; // I'm actually wrapping another logger here, this is just an example.
  }
  
  void log(const std::string&amp; fmt_string ...);
  {
    std::string msg = std::format(gmt_string, ...);
    log(msg);
  }
  </code></pre>