The Boost C++ library for logging, focused on simplicity, extensibility and performance
Questions tagged [boost-log]
336 questions
2
votes
0 answers
c++ log library with Debug Mode Support
google-glog logging library have a Debug Mode in which the log messages are compiled away if NDEBUG is defined for performance reasons.
Does Boost.Log have something similar?

nunojpg
- 505
- 3
- 16
2
votes
0 answers
Boost Log - Textual Format with Severity
I asked this question on boost-users mailing list but unfortunately never got a response. Hopefully I'll have better luck here.
I'm trying to specify a format textually (eg, keywords::format = "blahblah", instead of using a compiled expression).
The…

inetknght
- 4,300
- 1
- 26
- 52
2
votes
1 answer
Formatting a scope attribute in a custom boost log format function
I'm using a custom formatting function, and am trying to figure out how to format a scope attribute. The examples in the boost documentation that I've found are for lambda expression formatters, which I don't know how I would use within my…

css
- 944
- 1
- 9
- 27
2
votes
0 answers
memory leak on BOOST_LOG_TRIVIAL using _CrtDumpMemoryLeaks
I'm using visual studio 2010 and boost library. I'm trying to find memory leak using _CrtDumpMemoryLeaks called after the main function exits. I'm pretty sure boost_log_trivial doesn't leak memory. How to avoid this false positive?
Source…

Pritesh Acharya
- 1,596
- 5
- 15
- 36
2
votes
1 answer
Boost-log linker error
i've downloaded and builded Boost 1.55 from source. I'm trying to use Boost-log. In basic case (http://boost-log.sourceforge.net/libs/log/doc/html)/log/tutorial.html#log.tutorial.trivial it's working fine without any problems, but when i try to use…

cyriel
- 3,522
- 17
- 34
2
votes
0 answers
Boost log error
Hi all!
I try to build with gcc 4.5 application which is used boost log (boost 1.53). And I got the following error:
In file included from Modules/3rdParty/Boost/Include/boost/log/common.hpp:27:0,
from…

user2689311
- 21
- 2
2
votes
1 answer
Installing boost.log (windows 7 using codeblocks 12.11+gcc 4.7.1)
I am trying to build and run the Boost.Log library on CodeBlocks 12.11. I have no experience with boost and boost.log, and want to learn it, so, firstly I need to install it.
Installing boost
First I followed steps on how to install boost using…

Arkady
- 2,084
- 3
- 27
- 48
2
votes
0 answers
Boost.log: No output in the console or in the output file respectively
I've downloaded and compiled successfully the boost.log sources from svn under Windows 7 using mingw-4.7.
IDE: eclipse-juno with CDT.
The compilation string for the entire boost-sources (including boost.log in the appropriate folders) was:
"bjam…

Regina Balusz
- 91
- 2
- 11
2
votes
1 answer
What is the minimum Boost version to compile Boost.Log (as of revision 667)?
I have sucessfully built some Boost C++ 1.44.0 libraries for iOS 4.3. I now need Boost.Log v2. Boost.Log requires Boost C++ to be built. However, the Boost.Log documentation does not mention any minimal Boost C++ version.
I found scatered on the net…

David Andreoletti
- 4,485
- 4
- 29
- 51
1
vote
1 answer
Linking error while trying to build Boost.Log example
I have successfully built the Boost.Log library on Windows 7 for VS 2010. When I tried to run the simplest example, my program could not find the symbols for Boost.System and Boost.Filesystem, and I got the 'undefined external symbol' errors. I have…

grzkv
- 2,599
- 3
- 26
- 37
1
vote
1 answer
Why does boost.log crash on Windows XP?
I'm using boost.log. Apart from the extreme amount of agro actually getting and building it, it's been running OK on Windows 7 and Vista.
I'm now trying to use the application on Windows XP, but boost.log is blowing with an unhandled exception…

Steve Dunn
- 21,044
- 11
- 62
- 87
1
vote
1 answer
How to achieve thread safety in Boost log
I have a multi thread application where I'd like to use boost-log.
I'm using boost 1.81.
To log I use macro
BOOST_LOG_TRIVIAL
Here where I configure boost-log:
logging::register_simple_formatter_factory

Lorenzo Isidori
- 1,809
- 2
- 20
- 31
1
vote
1 answer
How to use boost::log named_scope with boost::asio::yield_context?
The thing is that when there are coroutines they can work in random order, and they can end up but
BOOST_LOG_NAMED_SCOPE(...)
keeps scope's name on each stackframe being oblivious to the fact that those stackframes are not nested, so they can be…

unegare
- 2,197
- 1
- 11
- 25
1
vote
1 answer
How can I prevent boost log to duplicate message
I have code where I log different categories of information. Each piece of code has a specific tag that has been made for them. (e.g : database.message, database.odbc, event.cevent ...)
Moreover, I've made a function that reads a json file and their…

Forague
- 145
- 8
1
vote
1 answer
Building Boost Log Library
I'm upgrading boost to version 1.81.0 and meet with unresolved dependencies with boost log library. Linker requires the symbols like this:
error LNK2001: unresolved external symbol "class std::basic_ostream & __cdecl…

Serge Kork
- 61
- 3