Questions tagged [boost-logging]

This library is deprecated and is no longer being used. Use [boost-log] instead.

This library is deprecated and is no longer being used. Use instead.

Burninate boost-logging

46 questions
0
votes
1 answer

How to constrain total size in Boost.log when there are multiple sinks?

There are different sinks in code. Each sink has its rotation_size and max_size. Is there some way to constrain total size of all log sizes of all sinks?
yanran
  • 33
  • 5
0
votes
2 answers

Extract boost log attribute values of arbitrary type

There is a logging system with the number of attributes of arbitrary types. The attributes are added by external program(s) using public API (function template). The types aren't known beforehand. The typical way to print out an attribute's value…
vahancho
  • 20,808
  • 3
  • 47
  • 55
0
votes
1 answer

Boost.Log - Log messages are unexpectedly filtered out

I am trying to create filter by configurable severity level. I have written following filter class: class FilterBySeverity { public: FilterBySeverity(boost::log::trivial::severity_level logLevel) : m_logLevel(logLevel), …
ivan.ukr
  • 2,853
  • 1
  • 23
  • 41
0
votes
1 answer

Passing functon object as filter when initializing boost log sink

I am creating new sink like in this example: void init() { logging::add_file_log ( keywords::file_name = "sample_%N.log", keywords::rotation_size = 10 * 1024 * 1024, keywords::time_based_rotation =…
ivan.ukr
  • 2,853
  • 1
  • 23
  • 41
0
votes
1 answer

Error compiling code for creating boost.log format

I am trying to compile following code with gcc 7.3.0 on Ubuntu 18.04 LTS with option -std=c++14: auto createLogFormatter() { boost::log::expressions::stream_type stream; stream <<…
ivan.ukr
  • 2,853
  • 1
  • 23
  • 41
0
votes
1 answer

make fatal error: boost/fusion/iterator/equal_to.hpp no such file or directory

I'm trying to compile a little boost::logger demo application using cmake but my paths aren't being interpreted correctly. This is what I have: logger.cpp: #include #include #include…
stdcerr
  • 13,725
  • 25
  • 71
  • 128
0
votes
1 answer

No logs file getting created

I am using the example at the following link. https://www.boost.org/doc/libs/1_57_0/libs/log/doc/html/log/detailed/utilities.html#log.detailed.utilities.setup.settings_file My code is as follows. #include "stdafx.h" #include #include…
whoami
  • 1,689
  • 3
  • 22
  • 45
0
votes
1 answer

boost_logging fails to compile, because of 'CRITICAL_SECTION' : ambiguous symbol

I am using boost_logging for my project. In one of my file I just use my logging facility: LDBG_ << "something" but it does not seam to compile, I have the following error: 1>c:\boost\boost_logging\boost\logging\detail\ts\ts_win32.hpp(57) : error…
0x26res
  • 11,925
  • 11
  • 54
  • 108
0
votes
1 answer

TextFile Sink setting for Boost configuration file

I am using a configuration file to read the sink log settings. My requirement is to add a configuration setting to append contents to existing log file when the process gets restarted as mentioned here using "open_mode = std::ios_base::app" Boost…
Karthik K N
  • 71
  • 3
  • 7
0
votes
2 answers

Boost logging in real time

I use boost log to output my logs in two separate files, the problem is that i need these outputs to be written instantly, but boost waits 200+ lines to output it in the files. I don't want to have an ultra fast output but two times in a second or…
Waxo
  • 1,816
  • 16
  • 25
0
votes
1 answer

Boost Log: Interaction of log settings file and code configuration

I have a nice format and a console log: auto fmtStream = expressions::stream << "LineID: " << expressions::attr("LineID") << " " << "Message: " << expressions::message: boost::log::add_console_log(std::cout, keywords::format =…
Horus
  • 617
  • 7
  • 10
0
votes
1 answer

Using boost log with FastCGI

I am trying to use boost log in my FastCGI program, but looks they don't work together. When I execute the program directly, ./sample_log I can see logging messages logged into the file. When I launch the program using spawn-fcgi, sudo…
user2777473
  • 3,736
  • 5
  • 26
  • 39
0
votes
1 answer

Boost::log::string_literal construction issue

I'm trying unsuccessfully to use the macro BOOST_LOG_NAMED_SCOPE with no hard-coding (e.g no BOOST_LOG_NAMED_SCOPE("bla"), but BOOST_LOG_NAMED_SCOPE(some_variable); this macro uses inside a boost::log::string_literal that have no C'tor for…
o.z
  • 1,086
  • 14
  • 22
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
-2
votes
1 answer

Cannot understand what linker is complaining about

When compiling my project that uses boost logging library, I am getting following linker error. LNK2001 unresolved external symbol "public: static class boost::log::v2s_mt_nt6::sources::severity_logger_mt __cdecl …
whoami
  • 1,689
  • 3
  • 22
  • 45