Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
lambda-le-logger
Advanced tools
A way to send logs to the Logentries service, even from an AWS Lambda function.
A way to send logs to the Logentries service, even from an AWS Lambda function.
To use this, simply add the following to your code:
// Up with your other require statements, add this:
var logger = require('lambda-le-logger');
// ... and then down where your code actually starts doing things, add this:
logger.initLogger();
// After that, you can call the log/info/warn/error methods at any time:
logger.info('Starting...');
Make sure you call initLogger()
on each execution of your code, before you
start sending logs to Logentries.
Initialize the (internal) logger instance. Call this before sending log data.
Send log data to Logentries.
Register a function to be called ONCE as soon as the last of the currently-pending attempts at sending a log message has completed (successfully or not). If there are currently no pending messages, the callback will be called immediately. No parameters will be sent to the callback you provide.
This can be helpful to use just before calling the main callback function of your lambda code, to allow the sending of logs to Logentries to complete before your lambda function terminates. For example:
logFunctions.registerCompletionCallback(function() {
mainCallback(null, results);
});
If you don't do this, some of your logs might not make it to Logentries (which is one of the main reasons I wrote this library).
This code is made available under the MIT license.
FAQs
A way to send logs to the Logentries service, even from an AWS Lambda function.
The npm package lambda-le-logger receives a total of 1 weekly downloads. As such, lambda-le-logger popularity was classified as not popular.
We found that lambda-le-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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.