Chris
Chris

Reputation: 739

console.debug not showing in firebase functions log

console.log("Log") shows up as an Info level log in the firebase functions log.

console.debug("Debug") does not show up at all.

I have the log viewer set to display all log levels.

Is there something I need to do to support different log levels?

This is for the fulfillment for a dialogflow application, if this matters. I would guess it doesn't but it's my only experience with firebase.

Upvotes: 2

Views: 509

Answers (1)

ajorquera
ajorquera

Reputation: 1309

console.debug is for internal messages.

You need to use:

  • console.log() commands have the INFO log level.
  • console.info() commands have the INFO log level.
  • console.warn() commands have the ERROR log level.
  • console.error() commands have the ERROR log level.

Check the documentation.

Upvotes: 3

Related Questions