Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

183
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda