Here is how you could disable the additional information that rlog provides (e.g. file name, line number, etc.). When you initialize rlog in your main() function (or anyway), you can do the following:
rlog::RLogInit(argc, argv); rlog::StdioNode slog (2, rlog::StdioNode::OutputColor); slog.subscribeTo( RLOG_CHANNEL("error") );
The second argument to StdioNode is the flags for controlling the output. Check the rlog documentation (can be generated using Doxygen) for a complete list of possible flags. The one in the example makes rlog only a color result according to severity, without adding any other information.
cassava Oct 31 '12 at 10:13 2012-10-31 10:13
source share