Class: GrapeLogging::Loggers::ClientEnv
- Defined in:
- lib/grape_logging/loggers/client_env.rb
Instance Method Summary collapse
Instance Method Details
#parameters(request, _) ⇒ Object
4 5 6 |
# File 'lib/grape_logging/loggers/client_env.rb', line 4 def parameters(request, _) { ip: request.env["HTTP_X_FORWARDED_FOR"] || request.env["REMOTE_ADDR"], ua: request.env["HTTP_USER_AGENT"] } end |