Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
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 the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.