
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@maeum/logging-controller
Advanced tools
The @maeum/logging-controller is an implementation of best practices for handling logging in the fastify.js framework. It allows you to pick and choose which logging framework you want to use between winston and pino, and provides standard guidelines when you don't know what to log. It also provides methods for logging richer logs. For example, it takes extra work to include the payload from a FastifyReply to a client in the log, but in @maeum/logging-controller all I need to do is tell it I want to log it. Use @maeum/logging-controller to log richer, easier logs!
Why use @maeum/logging-controller?
FastifyRequest to curl so you can quickly reproduce problems when they occurnpm install @maeum/logging-controller --save
import { pino as pinoBootstrap, RequestLogger } from '@maeum/logging-controller';
// bootstrap pino logger
pinoBootstrap(false);
const server = fastify()
// pino logger add in fastify by plugin
server.register(RequestLogger.it.plugin, RequestLogger.it);
The @maeum/logging-controller consists of various functions, including functions to initialize winston and pino, functions to extract information for logging from FastifyRequest, and functions to generate curl commands. These functions make it easy for developers to log detailed information while also allowing them to customize the information needed for logging.
flowchart LR
FR[FastifyRequest]
FP[FastifyReply]
WL[winston]
RL[Request<br />Logger]
CC[curl<br />command<br />creator]
subgraph FF[Fastify]
direction TB
FR
FP
FR --- FP
end
FF-->RL
FF-->CC
RL-->WL
CC-->WL
FAQs
maeum logging controller
We found that @maeum/logging-controller 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.