lib/logster/base_store.rb in logster-1.0.1 vs lib/logster/base_store.rb in logster-1.1.1

- old
+ new

@@ -63,12 +63,24 @@ # to be deleted (report should delete any solved messages when called) def solve(message_key) not_implemented end + # Registers a rate limit on the given severities of logs + def register_rate_limit(severities, limit, duration, &block) + not_implemented + end + + # Checks all the existing rate limiters to check if any has been exceeded + def check_rate_limits(severity) + not_implemented + end + def report(severity, progname, msg, opts = {}) return if (!msg || (String === msg && msg.empty?)) && skip_empty return if level && severity < level + + check_rate_limits(severity) message = Logster::Message.new(severity, progname, msg, opts[:timestamp]) env = opts[:env] || {} backtrace = opts[:backtrace]