![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A module for collecting data and programmatically flushing it to a single endpoint.
Lager enables you to collect data, organize it, and programmatically flush it to a single endpoint. Logs are separated by type, each of which contains an array of entries. Logs can then be flushed by type or all at once.
Logs are sent as a POST request in the form
{
payload: {
'type': [log[, log]],
'type_2': [log[, log]]
...
}
}
where log
is an object of key-value pairs.
Node
npm install lagerjs --save
Browser
Include build/lager.js
or build/lager.min.js
in your HTML file. Alternatively, you can build lager yourself with make
.
##Usage
Lager.log(type, data[, flush])
Store log data
and associate it with an type
. Optionally set flush
to true to send the data immediately. Flush is false by default.
Lager.flush([type])
Send all logs to the endpoint. Optionally give type
, and only those logs will be sent.
var Lager = require('lagerjs');
var logger = new Lager({
host: 'yourserver.io/some-endpoint' // or whatever
});
logger.log('playstart', { name: 'wells' });
logger.log('playstart', { paused: true });
logger.log('playstart', { hd: false });
logger.log('playend', { seconds: 50 });
Will produce the following data in memory
{
payload: {
'playstart': [{ name: 'wells' }, {paused: true}, {hd: false}],
'playend': [{ seconds: 50 }]
}
}
Then send logs to a backend
logger.flush('playstart') // flush playstart logs only
logger.flush() // alternatively flush everything
FAQs
A module for collecting data and programmatically flushing it to a single endpoint.
The npm package lagerjs receives a total of 1 weekly downloads. As such, lagerjs popularity was classified as not popular.
We found that lagerjs 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.