title: What is boost log, how to get it and how to build it
body: <p>So I heard good things about boost log. This claims its existence: </p>
  
  <p><a href="http://boost-log.sourceforge.net/libs/log/doc/html/index.html" rel="noreferrer">http://boost-log.sourceforge.net/libs/log/doc/html/index.html</a></p>
  
  <p>This is the tutorial:</p>
  
  <p><a href="http://boost-log.sourceforge.net/libs/log/doc/html/log/tutorial.html#log.tutorial.trivial" rel="noreferrer">http://boost-log.sourceforge.net/libs/log/doc/html/log/tutorial.html#log.tutorial.trivial</a></p>
  
  <p>However, boost log is not part of boost. Hence not in the regular boost branch.</p>
  
  <p>One can download boost log separately from here:</p>
  
  <p><a href="http://sourceforge.net/projects/boost-log/" rel="noreferrer">http://sourceforge.net/projects/boost-log/</a></p>
  
  <p>I might just be too inexperienced, but I find the installation instructions very poor. Nonetheless, after downloading and copying the folders boost and lib into the boost folder, I can run bootstrap and bjam. This fails with errors relating to Boost.Filesystem versions, similar to the ones mentioned here:</p>
  
  <p><a href="http://boost.2283326.n4.nabble.com/Boost-Log-compilation-on-msvc-2010-fail-td3488502.html" rel="noreferrer">http://boost.2283326.n4.nabble.com/Boost-Log-compilation-on-msvc-2010-fail-td3488502.html</a></p>
  
  <p>The recommendation from Andrew Semashev (in above link) is to "Please use Boost.Log v2 (from SVN trunk)."</p>
  
  <p>Looking at <a href="https://boost-log.svn.sourceforge.net/svnroot/boost-log" rel="noreferrer">https://boost-log.svn.sourceforge.net/svnroot/boost-log</a>, I can only see version 1.</p>
  
  <p>Looking at <a href="http://svn.boost.org/svn/boost/sandbox/" rel="noreferrer">http://svn.boost.org/svn/boost/sandbox/</a>, I can find boost logging v2 by John Torjo. However, just from the syntax that might not be the boost log v2 that Andrew Semashev is talking about.</p>
  
  <p>Seeing that I spend way too many hours on this already, I figured I'd get some help, and maybe some other people might profit from this post and the answers and save themselves some time. I don't think it has been answered before, and answers like these change I supposed.</p>
  
  <p>So, here goes: What is boost log v2 that Andrew Semashev is talking about? Is it the same as John Torjo's? If not, where I can find it? And how do I build it?</p>
  
  <p>Thanks</p>
  
  <p>P.S. I should mention this is on Windows with Visual Studio Express 2010</p>
  
  <p>P.P.S. Guess "version 2", which is apparently just the SVN, also has problems, but with this line (see Sergio's answer below)</p>
  
  <p><code>&lt;toolset&gt;msvc:&lt;define&gt;BOOST_FILESYSTEM_VERSION=2</code></p>
  
  <p>in the bjam file at least I can compile. However, this file</p>
  
  <pre><code>#include &lt;boost/log/trivial.hpp&gt;
  int main(int, char*[])
  {
      BOOST_LOG_TRIVIAL(trace) &lt;&lt; "A trace severity message";
      BOOST_LOG_TRIVIAL(debug) &lt;&lt; "A debug severity message";
      BOOST_LOG_TRIVIAL(info) &lt;&lt; "An informational severity message";
      BOOST_LOG_TRIVIAL(warning) &lt;&lt; "A warning severity message";
      BOOST_LOG_TRIVIAL(error) &lt;&lt; "An error severity message";
      BOOST_LOG_TRIVIAL(fatal) &lt;&lt; "A fatal severity message";
  }
  </code></pre>
  
  <p>straight out of the tutorial, albeit now compiling and linking, doesn't produce any output...</p>