Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dup_filter_sink adds parameters to enable setting the level of skipped logs #2563

Merged
merged 2 commits into from
Dec 2, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
rename the param name 'level' to 'notification_level'
  • Loading branch information
zhuyadong committed Dec 2, 2022
commit b8a64c05e9812eb342485bd382623b866793e753
4 changes: 2 additions & 2 deletions include/spdlog/sinks/dup_filter_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ class dup_filter_sink : public dist_sink<Mutex>
{
public:
template<class Rep, class Period>
explicit dup_filter_sink(std::chrono::duration<Rep, Period> max_skip_duration, level::level_enum level = level::info)
explicit dup_filter_sink(std::chrono::duration<Rep, Period> max_skip_duration, level::level_enum notification_level = level::info)
: max_skip_duration_{max_skip_duration}
, log_level_{level}
, log_level_{notification_level}
{}

protected:
Expand Down