Subscribing to channel?

17 views
Skip to first unread message

Sean

unread,
Jan 19, 2010, 3:41:58 PM1/19/10
to rlog-users
I'm new to rLog and I'm trying to subscribe to a channel thusly:

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...

Valient Gough

unread,
Jan 25, 2010, 12:31:08 PM1/25/10
to Sean, rlog-...@googlegroups.com

Your message got trapped in the spam queue waiting for manual approval...

You'll need to include RLogChannel.h - the compiler doesn't realize that RLogChannel is an RLogNode.

regards,
Valient

Reply all
Reply to author
Forward
0 new messages