I read the doxygen doc, and I read this part:
"Filters
should be instantiated only after outputs are instantiated, as they
automatically search for and publish to targets."
So
I thought if I'm doing so, I won't have all the target linked
(subscribed?!) to the filters.
Something like this in order to subscribed only the mailTarget to the
mailFilter:
int main(int argc, const char *argv[])
{
LOGOG_INITIALIZE();
// args: log_level, sFileName, nLineNumber, sGroup, sCategory,
sMessage, dTimestamp (0.0f)
MailFilter * mailFilter = new MailFilter();
mailFilter->Group(_LG("Mail"));
{
logog::Cerr err;
logog::GetDefaultFilter().Group(_LG("DefaultX"));
logog::GetDefaultFilter().PublishTo(err);
MailTarget mailTarget("XXXX");
mailFilter->PublishTo(mailTarget);
...
But I have the logog::Cerr err subscribe to the mailFilter too!
What's wrong in my code?
Thank you