How to display extra long aggregation in the log

I have a very long aggregation, I can log it down, but it is truncated automatically.
This is example:
Sending command ‘{"aggregate": "connection", "pipeline": [{"$match": {"corporateId": {"$oid": "597a535d504943542659146f"}, "graphName": "client_supplier", "deleted": false, "updatedDate": {"$gte": {"$date": "2024-03-04T15:25:41.457Z"}}}}, {"$match": {"fromId": {"$nin": [{"$oid": "5f1375932e0000d0c9e6ed8f"}]}, "toId": {"$nin": [{"$oid": "3fefc2e050494314216e4720"}, {"$oid": "3ff508e05049432e69b96d05"}, {"$oid": "402721e050494381f65b36be"}, {"$oid": "420af86050494392a67a7cc4"}, {"$oid": "428acbd050494339e245bd3e"}, {"$oid": "44714550504943ff436adb6d"}, {"$oid": "451ca850504943cf9d60c822"}, {"$oid": "453c4c50504943cb4ecbb8cc"}, {"$oid": "457f96e05049437c3022dd9d"}, {"$oid": "45862e6050494332348299e2"}]}}}, {"$sort": {"updatedDate": -1, "_id": -1}}, {"$skip": 0}, {"$limit": 3000}, {"$group": {"_id": "$fromId", "clients": {"$push": {"supplierId": "$toId", "siteId": "$fromId", "siteBillingId": "$siteBillingId", "createdConnectionDate": "$createdDate", "updatedConnectionDate": "$updatedDate", "connectionId": …’ with request id 130 to database on connection [connectionId{localValue:16, serverValue:18730}] to server