
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@deepracticex/logger
Advanced tools
Unified logging system for Deepractice projects using Pino.
pnpm add @deepracticex/logger
import { info, warn, error, debug } from "@deepracticex/logger";
info("Server started");
warn("Low memory");
error("Connection failed");
debug("Debug info");
import { createLogger } from "@deepracticex/logger";
const logger = createLogger({
level: "debug",
name: "@deepracticex/account-service",
console: true,
file: {
dirname: "/var/log/myapp",
},
colors: true,
});
logger.info("Custom logger initialized");
interface LoggerConfig {
level?: string; // 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace'
console?: boolean; // Enable console output (default: true)
file?:
| boolean
| {
dirname?: string; // Log directory (default: ~/.deepractice/logs)
};
colors?: boolean; // Enable colors (default: true, auto-disabled in MCP stdio)
name?: string; // Package/service name (default: 'app')
}
LOG_LEVEL - Set log level (default: 'info')MCP_TRANSPORT=stdio - Auto-disable colors for MCP stdio modeDEEPRACTICE_NO_WORKERS=true - Force sync mode (useful for Electron)fatal - Critical errorserror - Errorswarn - Warningsinfo - General informationdebug - Debug informationtrace - Verbose traceLogs are automatically rotated daily:
~/.deepractice/logs/
├── deepractice-2025-10-08.log # All logs
└── deepractice-error-2025-10-08.log # Error logs only
Automatically tracks and displays file location:
[2025-10-08 10:30:00] INFO: @deepracticex/account-service [index.ts:42] Server started
When running in MCP stdio mode (MCP_TRANSPORT=stdio), colors are automatically disabled to prevent ANSI escape codes from interfering with JSON-RPC messages.
When running in Electron or when DEEPRACTICE_NO_WORKERS=true is set, the logger uses sync mode to avoid worker thread issues.
MIT
FAQs
Lazy-initialized logging with pluggable backends
The npm package @deepracticex/logger receives a total of 37 weekly downloads. As such, @deepracticex/logger popularity was classified as not popular.
We found that @deepracticex/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.
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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.