🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@arcjet/logger

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcjet/logger

Arcjet lightweight logger which mirrors the Pino structured logger interface

latest
Source
npmnpm
Version
1.0.0-beta.15
Version published
Maintainers
3
Created
Source
Arcjet Logo

@arcjet/logger

npm badge

Arcjet lightweight logger which mirrors the Pino structured logger interface.

What is this?

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:

npm install @arcjet/logger

Example

import { Logger } from "@arcjet/logger";

const logger = new Logger({ level: "debug" });

logger.debug("only printed in debug mode");
// Logs ✦Aj DEBUG only printed in debug mode

logger.error("%d + %d = %d", 1, 2, 3);
// Logs ✦Aj ERROR 1 + 2 = 3

Log levels

Log levels can be changed by setting the ARCJET_LOG_LEVEL environment variable to one of: "DEBUG", "LOG", "WARN", or "ERROR".

License

Apache License, Version 2.0 © Arcjet Labs, Inc.

Keywords

arcjet

FAQs

Package last updated on 11 Nov 2025

Did you know?

Socket

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.

Install

Related posts