Boost log - how to make Line number and Function name appear in the log message
Posted on 2014-01-20
I find some words explaining to use BOOST_LOG_FUNCTION() to mark the scope of the function as you enter the function
.Prior to the log message, you hae to include BOOST_LOG_NAMED_SCOPE();
Any good example to see how it should be done. I can not figure it hoe to add line number and function name (or file name) into the log message.
I wonder if it is possible to selective added the line_number and function name to certain log message but not all. How can that be done with boost