lib/logstop.rb in logstop-0.2.1 vs lib/logstop.rb in logstop-0.2.2

- old
+ new

@@ -24,6 +24,10 @@ .gsub(PHONE_REGEX, FILTERED_STR) .gsub(SSN_REGEX, FILTERED_STR) .gsub(URL_PASSWORD_REGEX, FILTERED_URL_STR) .gsub(EMAIL_REGEX, FILTERED_STR) end + + def self.guard(logger, **options) + logger.formatter = Logstop::Formatter.new(logger.formatter, **options) + end end