
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
feature-logger
Advanced tools
Status: Experimental
feature-logger is a straightforward, typesafe, and feature-based logging library.
withTimestamp(), withPrefix(), ..Create a typesafe, straightforward, and lightweight logging library designed to be modular and extendable with features like withTimestamp(), withPrefix(), ..
import { createLogger } from 'feature-logger';
export const logger = createLogger();
logger.trace("I'm a trace message!");
logger.log("I'm a log message!");
logger.info("I'm a info message!");
logger.warn("I'm a warn message!");
logger.error("I'm a error message!");
withPrefix()Adds a static prefix to all log messages, allowing for consistent and easily identifiable log entries.
import { createLogger, withPrefix } from 'feature-logger';
const logger = withPrefix(createLogger(), 'PREFIX');
logger.log('This is a log message.');
// Output: "PREFIX This is a log message."
withTimestamp()Adds a timestamp to all log messages, enabling you to track when each log entry was created.
import { createLogger, withTimestamp } from 'feature-logger';
const logger = withTimestamp(createLogger());
logger.log('This is a log message.');
// Output: "[MM/DD/YYYY, HH:MM:SS AM/PM] This is a log message."
withMethodPrefix()Adds the log method name as a prefix to all log messages, allowing you to easily identify the log level or method used.
import { createLogger, withMethodPrefix } from 'feature-logger';
const logger = withMethodPrefix(createLogger());
logger.log('This is a log message.');
// Output: "Log: This is a log message."
logger.error('This is an error message.');
// Output: "Error: This is an error message."
FAQs
Straightforward, typesafe, and feature-based logging library
We found that feature-logger 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.