Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
firebase-logging
Advanced tools
Firebase Logging is a free open source tool that we built for the Firebase community. We are regular users of Firebase and this solves a real "logging" need for us. We hope it helps you too.
See our Firebase Logging Page for more information.
Firebase's CLI (command line interface) logging requires you to re-run the tool just to see new data. That becomes a lot of up 'arrow key' and 'enter' pressing.
Firebase Logging gives you mostly real-time logging by continually running the Firebase CLI logging command and printing to the console new entires. You can output the logs to the console and a file.
Log enhancements include:
--ft
parameter to format.The default polling occurs every 2 seconds. You can set the frequency of polling with the -freq
parameter from a minimum of 1500 milliseconds, which is the most Firebase will allow, to an infinite maximum. You might want to increase the frequency if you find the polling is taking too much system resources.
The default pull is 250 lines, so if you have more than 250 lines logs per the polling frequency, some logs will be missed. Increase the number of log lines pulled with the --n
parameter to capture more logs (1-1000).
npm i -g firebase-logging
firebase-logging --project=[Firebase projectId]
Start the logging to the console for project myFirerun, only for the sendReport function, save to the savelog.txt file, and format the time to local.
firebase-logging --project=myFirerun --func=sendReport --file=savelog.txt --ft
Parameter | Description |
---|---|
--project | [projectId] of Firebase project |
Parameter | Description |
---|---|
--h | Help info |
--file | [File Name] to write the logs |
--colorOff | Turn off coloring of logs |
--func | [Function Name] of specific function to view logs |
--n | [Number] of log lines to pull (1-1000) |
--ft | Format timestamp to local date and time |
--freq | [Milliseconds] to poll for new logs |
FAQs
Real-time logging for Firebase
The npm package firebase-logging receives a total of 4 weekly downloads. As such, firebase-logging popularity was classified as not popular.
We found that firebase-logging demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.