Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

181
Views
setLogLevel as 'silent' for JS firestore 2022

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.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!