StdioNode std_err_log(STDERR_FILENO,
rlog::StdioNode::OutputColor |
rlog::StdioNode::OutputContext |
rlog::StdioNode::OutputChannel);
// capture all messages and log them to stderr
std_err_log.subscribeTo( GetGlobalChannel("warning"));
std_err_log.subscribeTo( GetGlobalChannel("error" ));
But I get errors saying subscribeTo takes an RLogNode instead of
RLogChannel. What am I doing wrong? This is how it is in the
documentation...
You'll need to include RLogChannel.h - the compiler doesn't realize that RLogChannel is an RLogNode.
regards,
Valient