
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
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 21 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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.