lib/google_logger.rb
# Creates a new entry for a controller request, the entry includes params,
# request URL, client ip address and http method
#
# @param [ActionDispatch::Request] request request to be logged
# @param [ActionController::StrongParameters] params parameters to be logged
#
# return [Boolean] `true` if the entry was successfully written
Creates a new entry for a controller request, the entry includes params,
request URL, client ip address and http method
Creates a new entry for a controller request the entry includes params request URL client ip address and http method
def log_request(request, params)
      payload = {
        params: params,
        original_url: request.original_url,
        ip: request.ip,
        method: request.method
      }
      create_entry(payload, log_name: 'request', severity: :INFO)
    rescue StandardError => e
      log_google_logger_error(e)
    end
def log_request ( request , params ) payload = { params : params , original_url : request . original_url , ip : request . ip , method : request . method } create_entry ( payload , log_name : 'request' , severity : :INFO ) rescue StandardError => e log_google_logger_error ( e ) end
Creates a new entry for a controller request, the entry includes params,
request URL, client ip address and http method
Creates a new entry for a controller request the entry includes params request URL client ip address and http method
request
<not_specific>
params
<not_specific>
<not_specific>
params parameters to be logged return [Boolean] `true` if the entry was successfully written
params parameters to be logged return [ Boolean ] ` true ` if the entry was successfully written