I'm currently trying the following to disable firestore logging:
import * as firebase from 'firebase/firestore';
firebase.firestore.setLogLevel('silent');
The import statement fails, however. Does anyone know how to do this in 2022? All of the posts I see are old and do not work even if I copy the code down verbatim.
In the latest SDK versions, most APIs are top-level functions. So setLogLevel is no longer a method on the Firestore service, but instead its own function that you pass a Firestore object to.
import { setLogLevel } from "firebase/firestore";
setLogLevel('silent');
Also see snippets in the Firebase documentation on using Firestore and the upgrade guide for the modular SDKs.