
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.
lambda-monitor-logger
Advanced tools
Logging designed to be used with lambda-monitor
Install with npm:
$ npm install --save lambda-monitor-logger
const { logger, abbrev } = require('lambda-monitor-logger');
logger.error('Keyboard not found. Press F1 to Resume');
// => ERROR: Keyboard not found. Press F1 to Resume
logger.error(abbrev('some really long text'));
// => ERROR: some ... test
This logger will simply log to console and prefix with the debug level.
The available levels are: debug
, info
, warning
, error
, critical
.
Synonyms like warn
are available and the mapping can be found in the source code.
The log level can be set through the environment variable LOG_LEVEL
(defaults to DEBUG
).
Log messages below the currently set log level are completely ignored.
FAQs
Logging designed to be used with lambda-monitor
We found that lambda-monitor-logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.