The Boost C++ library for logging, focused on simplicity, extensibility and performance
Questions tagged [boost-log]
336 questions
0
votes
1 answer
Why that link limitation with boost::log
I used boost log in multiple project and just discovered a limitation in the way I should use/build the lib depending of the software component type static or shared I develop ode see here
The library has a separately compiled part which should be…

alexbuisson
- 7,699
- 3
- 31
- 44
0
votes
1 answer
boost.log breaking when Xcode precompiled header used
I've got a pretty minimal sample project for boost.log running on Xcode 5, which goes like this:
#include
#include
#include
#include
#include…

Jay
- 6,572
- 3
- 37
- 65
0
votes
1 answer
How can I use BOOST_LOG_TRIVIAL macro to log anything to both stdout / stderr and file
How can I use BOOST_LOG_TRIVIAL macro to log anything to both stdout / stderr and file?
If I do
boost::log::add_file_log
(
boost::log::keywords::file_name =
"logs/%Y-%m-%d_%H-%M-%S.%N.log",
boost::log::keywords::rotation_size = 10…

FrozenHeart
- 19,844
- 33
- 126
- 242
0
votes
2 answers
Boost Log does not work correctly when linked to a shared library
I tried to do this: create 1 shared library on Windows (*.dll) which uses Boost::Log
(I want to link the Boost::Log to this library statically since I want everything was packaged in only 1 DLL file) but not successful.
My project has 4 files as…

kevin.bui
- 51
- 1
- 7
0
votes
1 answer
Boost.Log Issue
I've some problem with Boost.Log: this is a snipet:
#include
#include
#include
#include
#include…

Elvis Dukaj
- 7,142
- 12
- 43
- 85
0
votes
1 answer
Test whether a log message is generated using Boost.Log
I am currently using Boost.Log in one of my software projects. There is one case, where I report an error condition by using a log message. I would like to test whether this condition is detected correctly using google testing framework. Just to be…

Markus Mayr
- 4,038
- 1
- 20
- 42
0
votes
1 answer
Boost.Log error with namespaces
I have ran into an error when using operator<< overrides with operands located under a namespace. I'm not really even sure what might be causing this problem, please have a look at the source code:
#ifndef ENUM_UTILS_H
#define ENUM_UTILS_H
#include…

user4157482
- 809
- 11
- 18
0
votes
1 answer
using Boost Log to generate application time distribution?
I have an Eigen-based C++ application where I'm interested in generating the time distributions for the different steps in a way one could generate a time distribution performance plot. This will help quickly finding the current bottlenecks e.g.…

SkyWalker
- 13,729
- 18
- 91
- 187
0
votes
1 answer
boost log error when used in a project
I compiled Boost 1.54 on my Debian 7 64 bit Linux box and installed it successfully.
However, when trying to use it in my project I'm getting a huge bunch of errors (Full dump is here: http://pastebin.com/zUTcb7vp).
I tried creating a simple test…

Jarrett
- 1,767
- 25
- 47
0
votes
0 answers
Building Boost 1.53.0 Boost Log 2.0r862 on OSX 10.8.3
I am working at building Boost 1.53.0 with Boost Log 2.0r862 on Mac OSX 10.8.2 and installed it to a fake root to keep the /usr/lib* and /opt/lib* clean. I built and installed Boost with./bootstrap --prefix=/path/to/myfakerootdirand installed the…

brad_c6
- 23
- 1
- 6
0
votes
1 answer
boost.log errors linking statically
I'm getting the following (and many more) errors when attempting to link my project statically with boost.log on MSVC 10.0:
1>libboost_log-vc100-mt-gd-1_53.lib(attribute_name.obj) : error
LNK2001: unresolved external symbol…

jwalk
- 1,120
- 11
- 27
0
votes
1 answer
A mysterious compilation error: cannot convert from 'const boost::shared_ptr' to 'const boost::shared_ptr'
I wanted to protect the access to a log file that I use for multithreaded logging with boostlog library.
I tried this stream class
class ThreadSafeStream
{
public:
template
const ThreadSafeStream& operator<< (const TInput…

Stephane Rolland
- 38,876
- 35
- 121
- 169
0
votes
1 answer
Filter by scope in Boost.Log
I'm using Boost.Log library. I've created a named_scope attribute that keeps track of where I am in the code. (I specify it by hand with BOOST_LOG_NAMED_SCOPE("...").) Is it possible to create a filter (using set_filter) that would select only the…

foxcub
- 2,517
- 2
- 27
- 27
-1
votes
1 answer
Problem of Compilation when defining factory for boost logger
Following the question asked here Boost.Log, using custom attributes in filename or target value of configuration file, I tried to develop the proposed solution but I encounter a build issue on Windows due to wchar_t vs char while trying to set the…

Joel
- 669
- 7
- 25
-1
votes
1 answer
The problem with linking the boost log to the library
I created a static library (on linux machine), it is builded without mistakes, but when I link with other project in the result many error. Linked by cmake. When I built this library to the executable it is work.
CMakeLists.txt - where build…