Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
nhsuk-bunyan-logger
Advanced tools
A little library to ease the sharing of the setup of the bunyan
logger.
An instance of a bunyan
logger is created via the
constructor-api and
returned.
yarn install git://github.com/nhsuk/bunyan-logger.git#x.x.x
npm install nhsuk/bunyan-logger
const log = require('nhsuk-bunyan-logger')('LOGGER-NAME');
log.METHOD('message goes here');
Where LOGGER-NAME
is the name you want for the logger.
Where METHOD
is any of the supported Bunyan
logger methods. Check
out the Bunyan documentation for
additional information on the API.
A number of environment variables are used, as detailed below.
Variable | Description | Default |
---|---|---|
NODE_ENV | Node environment | development |
LOG_LEVEL | Numeric log level | Depends on NODE_ENV |
A note on LOG_LEVEL
- there are default values set depending on the
environment. However, if LOG_LEVEL
is set this value will override any
defaults there might be.
FAQs
Facade over bunyan logger.
We found that nhsuk-bunyan-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.