Prevent /shared/log/rails/production.log

In my case I see the log responds to pointless malicious access attempts - perhaps that’s not useful and can be reconfigured not to happen?

ActionController::RoutingError (No route matches [HEAD] "/passwords.txt")
...
ActionController::RoutingError (No route matches [GET] "/.env")