
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Logging made easy, useful and scalable
npm install --save asynclog
# or, if you are using yarn
yarn add asynclog
const log = require('asynclog')('myApp')
function hello () {
log('Logging made', 'easy,', 'useful', 'and scalable.')
log.warn('Not all problems are solved.')
log.info('And we are actively working to solve them.')
log.error('Issues:', 'https://github.com/VikramTiwari/asynclog/issues')
log.trace('Include stacktraces, they make it easier to debug.')
log.event(0, 'Category', 'Action', 'Label', 0)
}
hello()
LOG_NAMESPACE=* node example.js
[Logs Image]
# Set ENV variables before running project
LOG_TRANSPORT=google-cloud
GCLOUD_PROJECT_ID=ivikramtiwari # use your project id
# Set ENV variables before running project
EVENT_TRACKING=google-analytics
GA_TRACKING_ID=UA-20640332-8 # use your tracking id
| ENV Variable | Possible Value | Usage |
|---|---|---|
| LOG_NAMESPACE | * | see all logs |
| myNamespace | log for myNamespace | |
| -myNamespace | don't log myNamespace | |
| LOG_TRANSPORT | google-cloud | stream logs to google cloud logging |
| GCLOUD_PROJECT_ID | your-project-id | required if google-cloud was selected as LGO_TRANSPORT |
| EVENT_TRACKING | google-analytics | stream event to google analytics |
| GA_TRACKING_ID | UA-12345678-9 | required if google-analytics was selected as EVENT_TRACKING |
If you found this library helpful, or learned something from it and want to thank me, consider buying me a cup of ☕️.
FAQs
logging made easy, useful and scalable
We found that asynclog 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.