Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@testim/coralogix-logger
Advanced tools
Use coralogix-logger to easily send your logs to Coralogix's log analytics platform.
Before beginning you must have installed:
npm install --save coralogix-logger
var Coralogix = require("coralogix-logger");
// global confing for application name, private key, subsystem name
const config = new Coralogix.LoggerConfig({
applicationName: "node tester",
privateKey: "YOUR_PRIVATE_KEY",
subsystemName: "node tester sub",
});
Coralogix.CoralogixLogger.configure(config);
// create a new logger with category
const logger = new Coralogix.CoralogixLogger("My Category");
// create a log
const log = new Coralogix.Log({
severity: Coralogix.Severity.info,
className: "className",
methodName: "methodName",
text: "log data",
})
// send log to coralogix
logger.addLog(log);
For using TypeScript sources you should clone this repository, because it's not included in npm distribution.
import {Log, Severity, CoralogixLogger, LoggerConfig} from "coralogix-logger";
// global confing for application name, private key, subsystem name
const config = new LoggerConfig({
applicationName: "node tester",
privateKey: "YOUR_PRIVATE_KEY",
subsystemName: "node tester sub",
});
CoralogixLogger.configure(config);
// create a new logger with category
logger: CoralogixLogger = new CoralogixLogger("My Category")
// create a log
const log = new Log({
severity: Severity.info,
className: "className",
methodName: "methodName",
text: "log data",
})
// send log to coralogix
logger.addLog(log);
FAQs
Node.js SDK to send your logs to Coralogix
We found that @testim/coralogix-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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.