Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.41 KB

README.md

File metadata and controls

27 lines (17 loc) · 1.41 KB

Enhanced Firebase Emulator Logging

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.

Setup

  1. Clone this repository.
  2. Run the Firebase emulator andsave the output to a file. For example: firebase emulators:start > save.txt or npm run serve > save.txt.
  3. Run the Enhanced Firebase Emulator Logging app with the file as input. node index.js --file ./save.txt

Enjoy the logging!

Parameters

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