-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
[REQUIRED] Environment info
firebase-tools: 9.12.0
Platform: all
[REQUIRED] Test case
const functions = require("firebase-functions");
exports.loggerTest = functions.https.onRequest((request, response) => {
functions.logger.info("functions.logger");
functions.logger.info("functions.logger with structure", { structuredData: true });
console.log("console.log");
console.warn("console.warn");
response.send("Hello from Firebase!");
});
[REQUIRED] Steps to reproduce
Run the function above.
[REQUIRED] Expected behavior
Clean and uncluttered logging output.
[REQUIRED] Actual behavior
Even simple messages via functions.logger
are presented as complex JSON objects. This is not the case for console.log
gbourne1, CodeOfficer, odinho and Vloz