class SemanticLogger::Log

def extract_file_and_line(stack, short_name = false)

Extract the filename and line number from the last entry in the supplied backtrace
def extract_file_and_line(stack, short_name = false)
  return unless stack&.size&.positive?
  match = CALLER_REGEXP.match(stack.first)
  return unless match
  [short_name ? File.basename(match[1]) : match[1], match[2].to_i]
end