Firebase emulator logging is, well, kind of messy. This Node.js app helps clean up the console logs with colors, pretty formatting, and quiet to remove data you don't care about.
See examples and more details on the article How to Enhance Firebase Emulator Logs.
- Clone this repository.
- Run the Firebase emulator andsave the output to a file. For example:
firebase emulators:start > save.txt
ornpm run serve > save.txt
. - Run the Enhanced Firebase Emulator Logging app with the file as input.
node index.js --file ./save.txt
Enjoy the logging!
Parameter | Description | Required |
---|---|---|
--file | Location of the Firebase emulator saved output | Yes |
--quiet | Remove lines with "function, hosting, storage, and pubsub" to clean up the logs | No |
--pretty | Turn off pretty formatting of the logs. Default 'true' | No |
Bought to you by Ayrshare Social API