Current collected state Current
Observed since 20 Oct, 17:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Lightweight and configurable logging utility for Node.js with JSON support and file logging.
0xLogs is a lightweight and configurable logging utility for Node.js applications. It supports JSON parsing, file output, and built-in process event logging to help monitor your app's health and behavior with minimal setup.
npm install 0xlogs
info, warn, error, debuguncaughtExceptionunhandledRejectionSIGINT, SIGTERM, exitconst CreateLog = require("0xlogs");
const log = new CreateLog({
type: "info",
filePath: "./logs.txt",
json: true
});
log("App started", { port: 3000 });
log.setConfig({
type: "error",
json: false
});
| Option | Type | Default | Description |
|---|---|---|---|
type | String | info | Log level (info, warn, error, debug) |
filePath | String | undefined | Path to output log file (optional) |
json | Boolean | true | Enable JSON formatting for logs |
When require("0xlogs") is invoked, it automatically logs:
SIGINT, SIGTERMprocess.send)Example logs:
[~] [ERROR] Uncaught Exception: ...
[~] [INFO] Exited Application.
[~] [WARN] A promise rejection was handled asynchronously: ...
0xlogs/
├── lib/
│ ├── index.js # Combines validation utilities and config types
│ ├── process/
│ │ ├── index.js # Handles process-level logging
│ ├── types/
│ │ ├── index.js # Schema definition
│ ├── functions/
│ │ ├── index.js # Config & path validation
├── index.js # Main class (CreateLog)
MIT © 2025
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:8023718046a6d032bfca3572e6e45d23cd1cb6f7c5146b6ec8591c82623729a2