Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
seq-logging
Advanced tools
Sends structured log events to the Seq HTTP ingestion API
Weekly downloads
Readme
This library makes it easy to support Seq from Node.js logging libraries, including Winston via winston-seq, Pino via
pino-seq
, Bunyan viabunyan-seq
, and Ts.ED logger via @tsed/logger-seq. It is not expected that applications will interact directly with this package.
const seq = require('seq-logging');
Using seq-logging
in a browser context is the same, except the module to import is seq-logging/browser
.
const seq = require('seq-logging/browser');
A Logger
is configured with serverUrl
, and optionally apiKey
as well as event and batch size limits.
requestTimeout
can be used to adjust timeout for stalled connections, default: 30s.
const process = require('process');
const seq = require('seq-logging');
const logger = new seq.Logger({ serverUrl: 'http://localhost:5341' });
logger.emit({
timestamp: new Date(),
level: 'Information',
messageTemplate: 'Hello for the {n}th time, {user}!',
properties: {
user: process.env.USERNAME,
n: 20
}
});
logger.close();
Events are sent using the emit()
method, that internally performs asynchronous batching based on payload size.
When the application exits, close()
ensures all buffered events are written. This can be done at any time otherwise using the flush()
method. Both of these methods return promises indicating completion.
FAQs
Sends structured log events to the Seq HTTP ingestion API
The npm package seq-logging receives a total of 20,415 weekly downloads. As such, seq-logging popularity was classified as popular.
We found that seq-logging demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.