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.
Straight-forward logging module.
lines up everything in nice columns
uses colors
sends everything straight to console.log
, no events, no nextTick()
condenses repeated messages like:
2014-04-24 17:17:00.138 [DEBUG ] ( api-mobile.js) Cleaning up messages...
2014-04-24 17:34:32.715 [DEBUG ] ( api-mobile.js) Last message repeated 17 times.
2014-04-24 17:34:32.715 [INFO ] ( api-person.js) API-REQUEST: List Person...
displays stack traces for logged Error instances and other multi-line content like:
var log = require( "fm-log" ).module( path.basename( __filename ) );
log.info( "Initializing application..." );
log.debug( "We be logging" );
log.info( "We be logging" );
log.notice( "We be logging" );
log.warn( "We be warning" );
log.error( "We be logging" );
log.critical( "We be logging" );
var generic = require( "fm-log" );
generic.notice( "We don't need no prefix" );
Put this in every file where you want to log:
var log = require( "fm-log" ).module( path.basename( __filename ) );
Then just use log.info
or one of the other logging levels shown above.
For loggers without a specific prefix, just require()
the module and use it directly:
var generic = require( "fm-log" );
generic.notice( "We don't need no prefix" );
FAQs
Console logging facility for Node
The npm package fm-log receives a total of 3 weekly downloads. As such, fm-log popularity was classified as not popular.
We found that fm-log 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.