class SmarterLogging::AnomalyLogger

Public Instance Methods

_log(data) click to toggle source
Calls superclass method
# File lib/smarter_logging/anomaly_logger.rb, line 10
def _log(data)
  # If activity logging broke, make sure we log it as an anomaly:
  data[:anomaly] = data.delete(:activity) if data[:activity]
  super
end
log(unique_identifier, data, &block) click to toggle source
# File lib/smarter_logging/anomaly_logger.rb, line 5
def log(unique_identifier, data, &block)
  data = {:anomaly => unique_identifier}.merge( data )
  _log_wrapper(data, &block)
end