You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msg.level can be different from the level that was used for the filtered logs. I suppose this is a bit of a catch22, because the duplicate detection could trigger on identical log messages from different log calls that each use a different level, but I think the expectation is that the dup_filter_sink will be used to catch duplicates from log messages inside a loop.
pseudo-code:
// set up a dup_filter_sink logger
logger->set_pattern("%l - %v");
logger->log(trace, "hello, world!");
// info - hello, world!
logger->log(info, "hello, world!"); // filtered, even though different log level (fine by me)
logger->log(err, "goodbye, cruel world!");
// err - Skipped 1 duplicate messages..
// err - goodbye, cruel world!
I'd have expected the 2nd to last log message to have an info or trace level, not an err level.
The text was updated successfully, but these errors were encountered:
msg.level
can be different from the level that was used for the filtered logs. I suppose this is a bit of a catch22, because the duplicate detection could trigger on identical log messages from different log calls that each use a different level, but I think the expectation is that the dup_filter_sink will be used to catch duplicates from log messages inside a loop.pseudo-code:
I'd have expected the 2nd to last log message to have an
info
ortrace
level, not anerr
level.The text was updated successfully, but these errors were encountered: