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.
seal-log is the logger for all Node.js modules by SEAL Systems.
All log messages will be written to stdout
and can then be processed by 3rd-party tools.
$ npm install seal-log
First you need to integrate seal-log into your application.
const log = require('seal-log').getLogger();
The following log levels are defined:
debug:
log.debug('This is a debug message.');
info:
log.info('This is a info message.');
warn:
log.warn('This is a warning message.');
error:
log.error('This is a error message.');
fatal:
log.fatal('This is a fatal error message.');
Please note: This level will be used for logging an unhandled exception.
Exceptions that are not caught otherwise are also logged with log level fatal
. After logging the exception, the process will be terminated with exit code 1
. You have to require the log module at least one time in your project to enable this feature. No further configuration is required.
A list of log levels to print out. Possible levels are:
debug
info
warn
error
fatal
You have to provide a comma seperated list of the log levels you are interessted in:
LOG_LEVELS=info,warn,error,fatal
The list given above is the default setting, if no environment variable is set.
You can enable all logging levels with the shortcut
LOG_LEVELS=*
A single minimum log level which includes all higher levels.
LOG_LEVEL=warn
The setting above includes log levels warn
, error
and fatal
.
The environment variable LOG_LEVEL
has precedence over LOG_LEVELS
.
To build this module use roboter.
$ bot
FAQs
Logger for all Node.js modules by SEAL Systems
The npm package seal-log receives a total of 40 weekly downloads. As such, seal-log popularity was classified as not popular.
We found that seal-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.