I’m working on a BTS C++ code, i faced a command that i don’t know its functionality, i wish anyone here could help me
LOG(INFO) << *cmsrq;
Here what is the function of LOG. it’s not a logarithmic function.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s very probably a MACRO that gives you back an object which logs (to console or file) what you pass it through the
<<operator.Much like qDebug().
The value “INFO” you see in there indicates that you want to output the
*cmsrqvalue to the information log level.I can imagine some macro definition like that:
Where
logger()is a static function returning a reference of the logging engine class, initialized with the correct log level.