class SemanticLogger::Appender::Async

def check_lag(log)

def check_lag(log)
  diff = Time.now - log.time
  return unless diff > lag_threshold_s
  logger.warn "Async: Appender thread has fallen behind by #{diff} seconds with #{queue.size} messages queued up. Consider reducing the log level or changing the appenders"
end