class ElasticAPM::Config

def build_logger

def build_logger
  if self.log_ecs_reformatting == 'override'
    begin
      return build_ecs_logger
    rescue LoadError
      logger.info "Attempted to use EcsLogging::Logger but the gem couldn't be " \
        "loaded so a ::Logger was created instead. Check if you have the `ecs-logging` " \
        "gem installed and attempt to start the agent again."
    end
  end
  Logger.new(log_path == '-' ? $stdout : log_path).tap do |logger|
    logger.level = log_level
  end
end