firebase-functions icon indicating copy to clipboard operation
firebase-functions copied to clipboard

logging object with 'message' property

Open CorieW opened this issue 4 months ago • 0 comments

[REQUIRED] Version info

node: v20.9.0 firebase-functions: 6.3.1 firebase-tools: 14.5.1 firebase-admin: 13.4.0

[REQUIRED] Test case

logger.info({message: "Hello from Firebase v2!", test: "hello"});
// Output: "Hello from Firebase v2!"
// Expected Output: {"message": "Hello from Firebase v2!", "test": "hello"}

[REQUIRED] Steps to reproduce

  1. Use the test case code
  2. Deploy firebase function

[REQUIRED] Expected behavior

Log the object:

{"message": "Hello from Firebase v2!", "test": "hello"}

[REQUIRED] Actual behavior

Image

Were you able to successfully deploy your functions?

Yep

CorieW avatar Jun 10 '25 03:06 CorieW