id author title date pages extension mime words sentences flesch summary cache txt bibwild-wordpress-com-7940 logging URI query params with lograge – Bibliographic Wilderness .html text/html 1965 252 81 logging URI query params with lograge – Bibliographic Wilderness The lograge gem for taming Rails logs by default will lot the path component of the URI, but leave out the query string/query params. method=GET path=/search format=html controller=SearchController action=index status=200 duration=107.66 view=87.32 db=29.00 params={"q"=>"foo"} The params hash itself is what default rails logs… but what if we just log the actual URL query string instead? To the extent that params hash can include things not in the actual url, is that important to log like that? Note we use filtered_path rather than fullpath to again take account of Rails 6 parameter filtering, and thanks again /u/ezekg: This may discourage too many other alternatives for the initial primary use case of both lograge and rails_semantic_logger — turn a rails action into one log line, with a structured format. ./cache/bibwild-wordpress-com-7940.html ./txt/bibwild-wordpress-com-7940.txt