Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@poap-xyz/poap-logger
Advanced tools
A logger with a simple facade to use in the POAP ecosystem.
This project was built with Typescript.
Install from npm repository:
yarn add @poap-xyz/poap-logger
Example usage with the Fastify onRequest hook:
export default function onRequest(this: FastifyInstance, request: FastifyRequest<any>, response: FastifyReply<any>, done: (err?: Error) => void) {
const logger = PoapLoggerFactory.createLoggerInstance({
metadata: {/*METADATA*/}
});
Where METADATA is a key value pair object where you add the properties you want to log, eg:
metadata: {
requestId: request.headers["requestid"],
requestUrl: request.url,
source: "POAP-Logger-Parent"
}
You can also use getLoggerInstance
which will get a logger instance if one is already created or create a new one if not.
PoapLoggerFactory.getLoggerInstance({
metadata: {/*METADATA*/}
});
Create a child logger to override or combine parent child metadata:
logger.child({
moreMetadata1: "More meta", //Will be added
source: "POAP-Logger-Child" //Will override parent's source prop
});
Coming soon
Coming soon
Ignacio Negro Caino 💻 |
Eduardo Sacco 💻 |
Agustin Lavarello 💻 |
MIT © POAP
FAQs
A logger for POAP
The npm package @poap-xyz/poap-logger receives a total of 150 weekly downloads. As such, @poap-xyz/poap-logger popularity was classified as not popular.
We found that @poap-xyz/poap-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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
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.