Thank you very much. I will look into that section you provided. Really appreciate your help on custom attributes. On the linking, it is strange, may be something to do with my VS2015, it complains about C++14 as well. I will get latest update and try again. Thanks again!
I am particularly looking to know if I can add custom paramters and use parse_settings to get it and use them in the ilter for scope filtering via configuration file. I would really appreciate if you could point me to something. thanks again.
Hi Andrey, thanks for reply. Yes. I have implemented logger initialization something similiar to this. But somehow it fails to link with driver program. / my_logger.h // =========== BOOST_LOG_GLOBAL_LOGGER(my_logger, src::severity_logger_mt) // my_logger.cpp // =========== include "my_logger.h" BOOST_LOG_GLOBAL_LOGGER_INIT(my_logger, src::severity_logger_mt) { src::severity_logger_mt< > lg; lg.add_attribute("StopWatch", boost::make_shared< attrs::timer >()); return lg; } I have been able to resolve...
I was able to resolve #4 , by linking with psapi.lib. Perhaps, it depends on this for windows env only.
on #1, when I use BOOST_LOG_GLOBAL_LOGGER in logger.hpp and BOOST_LOG_GLOBAL_LOGGER_INIT in logger.cpp , I am getting the following linker error in the driver program(hello_test.cpp): hello_test.obj error LNK2001 unresolved external symbol "public static class: boost::log::v2s_mt_nt6::sources::severity_channel_mt<enum boost::log::v2s_mt_nt6::trivial::severity_level,="" class="" std::basic_string<char,="" std::char_traits<="" char="">, std::allocator<char>> > __cdecl mynamespace::construct_logger(void)"...
I was able to resolve the scope filtering issue. Thank you so much for your help!
When I use BOOST_LOG_GLOBAL_LOGGER in hpp and BOOST_LOG_GLOBAL_LOGGER_INIT in.cin.cpp I get linker error on construct_logger(void) . It does not recognize the symbol. I cant post from work anymore will type complete signature shortly.Tshortly.Thasks for reply
1.66 Boost version on MSVC 2015- forgot to add this.