
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
ETZ
and NO_ETZ
environment variables to filter$ npm i etz
index.js:
import etz from 'etz'
etz.debug(`Hello World!`)
etz.info(`Hello World!`)
etz.warn(`Hello World!`)
etz.error(`Hello World!`)
NOTE: The examples below are not colorized, but they will be in your terminal!
The default log level is INFO
:
$ node index.js
ℹ INFO Hello World!
⚠ WARN Hello World!
✖ ERROR Hello World!
Set the log level with the ETZ
environment variable:
$ node index.js
ℹ INFO Hello World!
⚠ WARN Hello World!
✖ ERROR Hello World!
$ ETZ=0 node index.js
★ DEBUG Hello World!
ℹ INFO Hello World!
⚠ WARN Hello World!
✖ ERROR Hello World!
$ ETZ=debug node index.js
★ DEBUG Hello World!
ℹ INFO Hello World!
⚠ WARN Hello World!
✖ ERROR Hello World!
$ ETZ=3 node index.js
★ DEBUG Hello World!
ℹ INFO Hello World!
⚠ WARN Hello World!
✖ ERROR Hello World!
$ ETZ=error node index.js
✖ ERROR Hello World!
Suppress all logs with NO_ETZ
:
$ NO_ETZ=1 node index.js
The value of NO_ETZ
doesn't matter. Any value works.
The Hebrew word for tree, wood, and most importantly log is "עץ", which is pronounced like "etz".
Stars are always welcome!
For bugs and feature requests, please create an issue.
FAQs
A humble logger.
We found that etz demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.