Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5949871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:18:44+00:00 2026-05-22T17:18:44+00:00

So I heard good things about boost log. This claims its existence: http://boost-log.sourceforge.net/libs/log/doc/html/index.html This

  • 0

So I heard good things about boost log. This claims its existence:

http://boost-log.sourceforge.net/libs/log/doc/html/index.html

This is the tutorial:

http://boost-log.sourceforge.net/libs/log/doc/html/log/tutorial.html#log.tutorial.trivial

However, boost log is not part of boost. Hence not in the regular boost branch.

One can download boost log separately from here:

http://sourceforge.net/projects/boost-log/

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:

http://boost.2283326.n4.nabble.com/Boost-Log-compilation-on-msvc-2010-fail-td3488502.html

The recommendation from Andrew Semashev (in above link) is to “Please use Boost.Log v2 (from SVN trunk).”

Looking at https://boost-log.svn.sourceforge.net/svnroot/boost-log, I can only see version 1.

Looking at http://svn.boost.org/svn/boost/sandbox/, 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.

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.

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?

Thanks

P.S. I should mention this is on Windows with Visual Studio Express 2010

P.P.S. Guess “version 2”, which is apparently just the SVN, also has problems, but with this line (see Sergio’s answer below)

<toolset>msvc:<define>BOOST_FILESYSTEM_VERSION=2

in the bjam file at least I can compile. However, this file

#include <boost/log/trivial.hpp>
int main(int, char*[])
{
    BOOST_LOG_TRIVIAL(trace) << "A trace severity message";
    BOOST_LOG_TRIVIAL(debug) << "A debug severity message";
    BOOST_LOG_TRIVIAL(info) << "An informational severity message";
    BOOST_LOG_TRIVIAL(warning) << "A warning severity message";
    BOOST_LOG_TRIVIAL(error) << "An error severity message";
    BOOST_LOG_TRIVIAL(fatal) << "A fatal severity message";
}

straight out of the tutorial, albeit now compiling and linking, doesn’t produce any output…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:18:45+00:00Added an answer on May 22, 2026 at 5:18 pm

    boost log v2 is simply what you get by checking out trunk, according to what Andrey says in the post you link.

    indeed, it seems that this version too has got problems compiling against boost::filesystem v3.

    if this is also your case, one workaround is compiling after adding

    <define>BOOST_FILESYSTEM_VERSION=2
    

    to the jamfile.

    if this does not work, then, check whether you are building a single threaded or multi-threaded version of the libraries. multi-threadred boost-log should be more tested (according to Andrey).

    hope this helps… I have not tried it…

    EDIT:

    where to add the ?

    I would add it to the requirements section of boost-log/libs/log/build/Jamfile.v2, shared subsection:

    project boost/log
        : source-location ../src
        : requirements
           <link>shared:<define>BOOST_LOG_DLL
           <link>shared:<define>BOOST_FILESYSTEM_VERSION=2
    

    EDIT: from Cookie’s comment, BOOST_FILESYSTEM_VERSION=2 should be specified as

           <link>msvc:<define>BOOST_FILESYSTEM_VERSION=2
    

    not in shared.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've heard a lot of good things about using Mylyn in eclipse. How could
I've heard a lot of good comments about Boost in the past and thought
I've been looking for a good vector solution, and have heard good things about
I've been a PHP developer for quite awhile, and I've heard good things about
WebSockets? I just recently ran across websockets and have heard some good things about
I have heard a lot of good things about the hibernate frame work, so
I occasionally hear things about how SQL sucks and it's not a good language,
I heard lots of good opinions about Python language. They say it's mature, expressive
I have heard this concept used frequently, but I don't have a really good
Are there any updated tutorials for using OpenID with Authlogic? I'd heard good things

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.