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.
@hmcts/nodejs-logging
Advanced tools
[![Greenkeeper badge](https://badges.greenkeeper.io/hmcts/nodejs-logging.svg)](https://greenkeeper.io/)
yarn add @hmcts/nodejs-logging
// Require it
const logging = require('nodejs-logging');
// Set this config only once
logging.config({
microservice: 'your-service-name',
team: 'YOURTEAM'
environment: 'some-environemnt'
});
// Get your logger
logger = logging.getLogger('app.js');
// Get logging
logger.info({
message: 'Yay, logging!'
});
Optionally you can use the built in express.js access logger.
app.use(logging.express.accessLogger());
A typical HTTP 404 log error when encountering an error would look like the following.
{
responseCode: 404,
message: 'Not Found',
fields: [],
level: 'ERROR',
environment: 'some-environemnt',
hostname: 'My-MacBook-Pro.local',
rootRequestId: '',
requestId: '',
originRequestId: '',
type: 'nodejs',
microservice: 'your-service-name',
team: 'YOURTEAM',
timestamp: '2017-01-27T11:27:23+00:00'
}
yarn test
FAQs
[![Greenkeeper badge](https://badges.greenkeeper.io/hmcts/nodejs-logging.svg)](https://greenkeeper.io/)
The npm package @hmcts/nodejs-logging receives a total of 917 weekly downloads. As such, @hmcts/nodejs-logging popularity was classified as not popular.
We found that @hmcts/nodejs-logging demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 16 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.
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.