Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
A minimal zero-dependency logger.
npm i lllog
Here's an simple example of how to use the package:
const logger = require('lllog')();
logger.info('LLLog is great');
You can customize the log level when creating your logger, or on runtime:
const logger = require('lllog')('error');
logger.info('This is not gonna be logged');
logger.error('But this will!');
logger.fatal('Also this one');
logger.setMinLevel('info');
logger.info('Now this is beeing logged too');
You can even silence every log using the none
log level
There are 5 log levels which you can use:
debug
info
warn
error
fatal
You can also use you're own log handler (it must implement the five log levels in order to prevent your app from crashing):
const logger = require('lllog')('error', myHandler);
// Or on runtime
logger.setHandler(myOtherHandler);
Simply run npm t
Issues and PRs are welcome, under one condition: maintain the zero dependency promise.
FAQs
A minimal zero-dependency logger
The npm package lllog receives a total of 1,653 weekly downloads. As such, lllog popularity was classified as popular.
We found that lllog 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.