Boost logo

Boost Users :

Subject: [Boost-users] About log example in visual studio 2008
From: Xiande Cao (xiande.cao_at_[hidden])
Date: 2014-03-19 01:59:45


Hi, Experts,

I was trying to run the log basic usage
(libs/log/example/basic_usage/main.cpp) example in visual studio. And it
crashed at line
    logging::add_console_log(std::clog, keywords::format = "%TimeStamp%:
%Message%");

Stopped at
        // For compatibility with Boost.Log v1 we recognize %_% as the
message attribute name
        const std::size_t len = end - begin;
        if (std::char_traits< char_type
>::length(constants::message_text_keyword()) == len &&
            std::char_traits< char_type
>::compare(constants::message_text_keyword(), begin, len) == 0)
        {
            m_AttrName = log::aux::default_attribute_names::message();
        }
        else
        {
            m_AttrName =
attribute_name(log::aux::to_narrow(string_type(begin, end)));
        }

Anybody has successfully run the example?
Thanks!

Regards,

Triston



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net