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.
hf-node-logger
Advanced tools
Laser Fox Logger Module for Node
simple installation
npm install hf-node-logger
require it in your file
var logger = require('hf-node-logger')();
There are multiple loglevel:
For debugging information 2. info
For the 'normal' stream of events 3. warning
For things which are uncritical but someone should have a look 4. severe
For things that should not happen 5. critical
For things that are breaking the System
Require the module and define your loglevel.
var config = {
stdOut : console.log,
errOut : console.error,
level : DEBUG,
name : 'AppLog'
};
and call the initializer which is returned by the require statement
var logger = require('hf-node-logger')(config);
If you don't specify any, the default loglevel is 'info'.
generic use:
logger.log(<LOGLEVEL>, <LOGTEXT>);
result:
<TIMESTAMP> | <NAME> | <LOGLEVEL> | <LOGTEXT>
There are specified shortcuts for every loglevel:
logger.debug(<LOGTEXT>);
logger.info(<LOGTEXT>);
logger.warning(<LOGTEXT>);
logger.severe(<LOGTEXT>);
logger.critical(<LOGTEXT>);
FAQs
A logger module with loglevels
The npm package hf-node-logger receives a total of 1 weekly downloads. As such, hf-node-logger popularity was classified as not popular.
We found that hf-node-logger 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.