boost-log Questions
3
Solved
I am getting valgrind leak reports from a server side application that use boostlog that is distributed with boost 1.56. the valgrind report is :
==8021== 37,088 bytes in 1,159 blocks are definite...
Stenson asked 4/2, 2015 at 12:50
2
Solved
I'm trying to get Boost.Log going in my project. The problem comes in the following line from the trivial example:
using namespace boost::log;
core::get()->set_filter
(
trivial::severity >=...
1
Solved
The documentation of record_view states that it encapsulates the log message string.
I'd like to retrieve it in the context of the consume function of a custom basic_string_backend subclass.
Is ...
Kinlaw asked 20/1, 2014 at 19:45
2
I have a C++ program that uses boost log, and I load a user-provided dynamic link library. I'd like to redirect stderr to the boost log, so that anytime the user's library does:
std::cerr <<...
Grube asked 29/7, 2013 at 3:7
1
Solved
To format the timestamp in a formatter one can simply write
sink->set_formatter(expr::stream << expr::format_date_time< boost::posix_time::ptime >("TimeStamp", "%Y-%m-%d %H:%M:%S"))...
1
I'm using boost log in my C++ program, and I have a custom severity_logger< severity_level > using a severity_level enum that I defined. Then I create my log sink with the format string "%Tim...
1
Suppose I have a simple boost.log severity_logger logger set up like this:
logging::core::get()->set_filter(logging::trivial::severity >= logging::trivial::debug);
logging::add_common_attr...
Votary asked 29/1, 2014 at 7:17
1
Solved
I've used boost::log successfully to log to stdout (using the TRIVIAL macros) or to log to a file (basically following the steps in the tutorial).
How would we configure to log to a file and stdou...
2
Solved
I'm playing with Boost.Log in boost 1.54.0 to see if it is a viable option for my application. In general, I don't have a problem with the buffering, so I'm not looking to turn on auto_flush or any...
Persona asked 26/7, 2013 at 18:32
2
Solved
I am using boost::log in this function:
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/utility/setup/f...
1
Solved
So I want to use Boost.Log for all my logging purposes. I currently wrote a class that encompasses all the required operations of instantiating and setting up helper methods.
Problem is that I wa...
Morissa asked 24/6, 2013 at 6:47
1
Solved
I've been struggling with boost log for a while now - I got their simple example writing to a log file (http://boost-log.sourceforge.net/libs/log/example/doc/tutorial_file.cpp). However, when I try...
1
Solved
I am using boost 1.54.0.
Below you can find a minimum example that illustrates my problem.
I use the severity_logger of boost log.
I want to configure my sinks from a stream.
(In the following exa...
1
Solved
I'm trying to use the Boost log library, and I want to add a timestamp to the output. I started out from this example, but I ran into compilation error. I copied the code exactly as in the example,...
1
Solved
In the latest Boost 1.54 release I see Boost.Log library appeared. When I compile whole Boost 1.54 I see that for the Log library it produced 2 binaries:
libboost_log.a
libboost_log_setup.a
Wha...
1
Solved
I want a simple log file in a concurrent application. I've download Boost.Log v2.0 and using compiled it with Boost 1.53.0.
The problem is that Boost.Log output on console. I'm using BOOST_LOG_TR...
3
I am considering starting to use the Boost.Log logging library. Is anyone using Boost.Log? Please share your experiences in this regard.
The other libraries I am considering are Apache log4c...
5
Solved
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/...
1
Solved
I am currently evaluating some log frameworks for unmanaged C++.
My question is: what is the difference between Boost.Log and Boost.Log v2?
Is the Api is different?
Is it safe to use Boost.Log v2...
Freshen asked 15/2, 2012 at 15:2
© 2022 - 2024 — McMap. All rights reserved.