Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@log4js-node/logfaces-http
Advanced tools
The logFaces appenders send JSON formatted log events to logFaces receivers. This appender uses HTTP to send the events (there is another logFaces appender that uses UDP).
npm install log4js @log4js-node/logfaces-http
type
- @log4js-node/logfaces-http
url
- string
- logFaces receiver servlet URLapplication
- string
(optional, defaults to empty string) - used to identify your application's logstimeout
- integer
(optional, defaults to 5000ms) - the timeout for the HTTP request.This appender will also pick up Logger context values from the events, and add them as p_
values in the logFaces event. See the example below for more details.
log4js.configure({
appenders: {
logfaces: { type: 'logFaces-HTTP', url: 'http://lfs-server/logs' }
},
categories: {
default: { appenders: [ 'logfaces' ], level: 'info' }
}
});
const logger = log4js.getLogger();
logger.addContext('requestId', '123');
logger.info('some interesting log message');
logger.error('something has gone wrong');
This example will result in two log events being sent to lfs-server
. Both events will have a p_requestId
property with a value of 123
.
FAQs
LogFaces HTTP Appender for log4js-node
We found that @log4js-node/logfaces-http 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.