origin_from_caller

in lib/ecs_logging/logger.rb [80:88]


    def origin_from_caller(stack)
      return unless (ruby_match = stack.first.match(RUBY_FORMAT))

      _, file, number, method = ruby_match.to_a

      {
        'file.name': File.basename(file),
        'file.line