
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A simple, yet flexible & powerful logging utility for Node.js applications with beautiful console output and file logging capabilities.
npm install slick-log
import { Logger, LogLevel } from 'slick-log';
// Console logging only (default behavior)
Logger.info('This only goes to console');
Logger.success('Success message');
Logger.error('Error with decorative border');
// Optional: Set log level (defaults to INFO)
Logger.setLogLevel(LogLevel.DEBUG);
// Optional: Enable file logging
Logger.setLogFiles('./logs/app.log', './logs/error.log');
Logger.info('This goes to both console and files');
// Optional: Disable file logging again
Logger.disableFileLogging();
Logger.info('Back to console only');
The logger supports the following log levels (in order of severity):
DEBUG (DEBG) - Detailed debugging informationINFO (INFO) - General information about program executionSUCCESS (SUCC) - Successful operationsWARN (WARN) - Warning messagesERROR (EROR) - Error messagesFATAL (FATL) - Fatal errors that may lead to program terminationimport { Logger, LogLevel } from 'slick-log';
// Set minimum log level
Logger.setLogLevel(LogLevel.DEBUG);
// Get current log level
const currentLevel = Logger.getLogLevel();
import { Logger } from 'slick-log';
// Check if file logging is enabled (false by default)
const isEnabled = Logger.isFileLoggingEnabled();
// Enable file logging
Logger.setLogFiles('./logs/app.log', './logs/error.log');
// Disable file logging (console logging continues)
Logger.disableFileLogging();
// Configure file size (default: 100MB)
Logger.setMaxFileSize(50); // 50MB
// Configure number of rotated files (default: 5)
Logger.setMaxRotatedFiles(3);
// Wait for all pending file writes to complete
await Logger.waitForWrites();
The logger provides beautiful, color-coded console output with centered log level labels:
Log files contain entries in the following format:
YYYY-MM-DD HH:mm:ss [LEVEL] Message
setLogFiles()This package is written in TypeScript and includes type definitions.
ISC
FAQs
A powerful and flexible logging utility for Node.js applications
We found that slick-log 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.