
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
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 2 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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.