This is an internal utility to help us log things.
It provides a small interface, a bit like Pino,
so that users with custom needs can swap it for their own logger.
When should I use this?
You should probably not use this but use one of the alternatives instead.
This package matches our current needs which are likely different from yours.
Install
This package is ESM only.
Install with npm in Node.js:
This type represents the supported log levels. The order from most verbose
to least verbose is debug, info, warn, to error. For example, when
you set the level to info, then warn and error messages are also
logged.
Logger#[debug | error | info | warn]([mergingObject, ][message, ]…interpolationValues)
Depending on the configured log level, these methods either do nothing or
print a log message. The message template and interpolation values are passed
through sprintf.
Parameters
mergingObject (Record<string, unknown>, optional)
— an object to merge into the log output
message (string)
— the message template
interpolationValues (Array<unknown>)
— values to interpolate into the template
Arcjet lightweight logger which mirrors the Pino structured logger interface
The npm package @arcjet/logger receives a total of 39,337 weekly downloads. As such, @arcjet/logger popularity was classified as popular.
We found that @arcjet/logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 2 open source maintainers collaborating on the project.