
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
@swiftpost/logger
Advanced tools
A simple console logger with colors.
pnpm add @swiftpost/logger
import { Logger } from "@swiftpost/logger";
const logger = new Logger();
You can scope the logger to a specific module or feature.
const logger = new Logger({ scope: "auth" });
info(message: string, ...args: any[])
Log an info message.
logger.info("This is an info message");
[12:00:00] INFO [auth]: This is an info message
warn(message: string, ...args: any[])
Log a warning message.
logger.warn("This is a warning message");
[12:00:00] WARN [auth]: This is a warning message
error(message: string, ...args: any[])
Log an error message.
logger.error("This is an error message");
[12:00:00] ERROR [auth]: This is an error message
debug(message: string, ...args: any[])
Log a debug message.
logger.debug("This is a debug message");
[12:00:00] DEBUG [auth]: This is a debug message
FAQs
A simple console logger class with colors.
The npm package @swiftpost/logger receives a total of 1 weekly downloads. As such, @swiftpost/logger popularity was classified as not popular.
We found that @swiftpost/logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.