347 questions
1
vote
1
answer
90
views
Boost Logging is getting unresolved symbol when linking: unhandled_exception_count
we are upgrading to boost 1.86.0 while preparing for an OS upgrade. I can not get rid of the unresolved symbol:
boost::log::v2s_mt_posix::aux::unhandled_exception_count() when linking.
We are ...
0
votes
0
answers
37
views
Should Boost.Log work with a sink in a dynamically linked application and logging source in a DLL loaded via LoadLibrary?
I maintain a Qt application that makes extensive use of plugins, and am trying to streamline the logging behavior by moving to Boost.Log.
The simplified structure is as follows:
MainLibrary.dll: has ...
1
vote
1
answer
102
views
Boost trivial log - custom severity name
I am using the boost trivial log with the default severity levels and I would like to map custom text for those default severity levels (e.g. instead of warning use warn).
In my formatter I use <&...
0
votes
0
answers
87
views
How to use boost log in visual studio 2015 and build platform is v140
I have added all the dependencies but after adding it i am getting some linking error. I am using visual studio 2015 buildtool v140 , platform v8.1 and platform win32.
I have added the necessary ...
0
votes
0
answers
40
views
Why is Boost.log record_ostream.hpp failing (m_record != null) assertion in get_record()?
This is thrown when I try to run the binary. CMake and ninja builds just fine.
Exact error message:
Assertion failed: (m_record != __null), function get_record, file /usr/local/include/boost/log/...
1
vote
1
answer
58
views
How to change TimeStamp output when using boost log?
I'm trying to find a simplest way to change the output of TimeStamp. This is how I initialize the log library
boost::log::add_common_attributes();
boost::log::register_simple_formatter_factory<...
1
vote
1
answer
58
views
GetLastError custom attribute
I would like to include GetLastError in each log output but the value is overwritten when boost::log calls another Windows API before the attribute value is queried. Anyone know a nice way around this?...
1
vote
0
answers
133
views
Access violation using boost::log with google test
When I run the following code, I successfully get the "Test Log" printed to the console.
#include <boost/log/trivial.hpp>
#include <boost/log/sources/severity_logger.hpp>
int ...
1
vote
1
answer
111
views
Boost Log, C++: Pass logger as a parameter to ctor of class instead of using global logger
I have successfully created a class that uses a global boost logger (supporting multi-threaded and severity level) which is created in the class's header file. I want to log different messages to ...
0
votes
1
answer
308
views
Boost Log incorrect target directory
I have observed the following behavior:
Boost Log always writes log files to the binary folder (folder which contains the executable) first and move them to the configured target directory keywords::...
1
vote
1
answer
107
views
Boost Log: Filtering named scopes using a settings file
I'm using Boost Log in my project and I want to be able to filter the scopes that I'm currently interested in the console sink, within the settings file.
I have the names scope attribute added using:
...
1
vote
2
answers
324
views
Adding a header to the head of a log file
I would like to add a header to a log file which would describe the format of the data in the log file. The purpose of this is to perform post analysis in python pandas. I am looking to add a header ...
0
votes
2
answers
58
views
Error when reading information stored in a file created with Boost::log library
I have created an interface file, my_boost_log.h, and the related implementation file my_boost_log.cpp
The interface file contains the following lines:
#ifndef MY_BOOST_LOG_H
#define MY_BOOST_LOG_H
#...
0
votes
1
answer
54
views
Where to insert the filtering logging mechanism when using Boost.Log V2 module?
I have a project organized as follows:
All the "component" folders have the same structure. I am using the Boost.Log v2, and I am able to see all types of logs (trace, debug, ..., fatal) on ...
2
votes
1
answer
628
views
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::...