title: boost::log is it possible rotate file every time applicaion run?
body: <p>Let's consider example from boost::log <a href="http://www.boost.org/doc/libs/1_60_0/libs/log/example/doc/tutorial_file.cpp" rel="nofollow noreferrer">doc</a>. </p>
  
  <pre><code>void init()
  {
      logging::add_file_log
      (
          keywords::file_name = "sample_%N.log",
          keywords::rotation_size = 10 * 1024 * 1024,
          keywords::open_mode = (std::ios::out | std::ios::app),
          keywords::format = "[%TimeStamp%]: %Message%"
      );
  
      logging::core::get()-&gt;set_filter
      (
          logging::trivial::severity &gt;= logging::trivial::info
      );
  }
  
  int main(int, char*[])
  {
      init();
      logging::add_common_attributes();
  
      using namespace logging::trivial;
      src::severity_logger&lt; severity_level &gt; lg;
  
      BOOST_LOG_SEV(lg, trace) &lt;&lt; "A trace severity message";
      return 0;
  }
  </code></pre>
  
  <p>First time I start my application and file <code>sample_0.log</code> is created. Second time I start my application new message is appended  to same file <code>sample_0.log</code>. I want <code>sample_1.log</code> to be created by application. I want to rotate log files every time application runs. How can I archive this with <code>boost::log</code>? Thanks.</p>