Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
logzio-nodejs
Advanced tools
NodeJS logger for LogzIO. The logger stashes the log messages you send into an array which is sent as a bulk once it reaches its size limit (100 messages) or time limit (10 sec) in an async fashion. It contains a simple retry mechanism which upon connection reset (server side) or client timeout, wait a bit (default interval of 2 seconds), and try this bulk again (it does not block other messages from being accumulated and sent (async). The interval increases by a factor of 2 between each retry, until we reached the maximum allowed attempts (3).
By default any error is logged to the console. This can be changed by supplying a callback function.
var logger = require('logzio-nodejs').createLogger({
token: '__YOUR_API_TOKEN__',
type: 'YourLogType' // OPTIONAL (If none is set, it will be 'nodejs')
});
// sending text
logger.log('This is a log message');
// sending an object
var obj = {
message: 'Some log message',
param1: 'val1',
param2: 'val2'
};
logger.log(obj);
@timestamp_nano
Default: falseA few notes are worth mentioning regarding the use of the UDP protocol :
bufferSize
is slightly
different in this case. The messages will still be sent separately, but the logger will wait for the buffer to reach the size specified before
sending out all the messages. If you want each message to be sent out immediately, then set bufferSize = 1
.0.4.1
request
dependency to 2.75.00.4.0
0.3.10
0.3.9
0.3.8
sendAndClose()
method which immediately sends the queued messages and clears the global timer0.3.6
0.3.5
0.3.4
jsonToString()
was throwing an error in the catch()block0.3.2
0.3.1
log
with a string parameter, the object isn't constructed properly.npm install
to install required dependenciesnpm test
to run unit testsFAQs
A nodejs implementation for sending logs to Logz.IO cloud service Copy of logzio-nodejs
The npm package logzio-nodejs receives a total of 10,131 weekly downloads. As such, logzio-nodejs popularity was classified as popular.
We found that logzio-nodejs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
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.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.