2024-11-15 MongoDBのクエリーを出力する rails console 上で以下を実行すればよい。 Mongoid.logger = Logger.new($stdout) Mongo::Logger.logger = Logger.new($stdout)