
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
PieLogger is a feature-rich, customizable, and lightweight logger for Node.js applications. It supports multiple log levels, structured logging, colored console output, and file-based logging.
Install the package using npm:
npm install pie-logger
import { PieLogger } from "pie-logger";
const logger = new PieLogger({ loggerName: "MyAppLogger" });
logger.info("This is an info message.");
logger.error("This is an error message.", { error: "Sample Error" });
| Log Level | Method | Example |
|---|---|---|
| Debug | logger.debug() | logger.debug("Debugging the process."); |
| Info | logger.info() | logger.info("Informational message."); |
| Warning | logger.warning() | logger.warning("This is a warning."); |
| Error | logger.error() | logger.error("An error occurred."); |
| Critical | logger.critical() | logger.critical("Critical failure!"); |
Example:
logger.debug("Debugging a process.");
logger.info("This is an informational message.");
logger.warning("This is a warning message.");
logger.error("This is an error message.", { errorCode: 500 });
logger.critical("Critical failure!", { service: "Database" });
You can customize PieLogger with several configuration options:
const logger = new PieLogger({
loggerName: "MyAppLogger", // Name of the logger
logToFile: true, // Enable/Disable file-based logging (default: true)
logDirectory: "logs", // Directory for log files (default: 'logs')
minimumLogLevel: PieLogLevel.DEBUG, // Minimum log level (default: INFO)
colorful: true, // Enable colored console output (default: true)
});
PieLogger supports structured logging with additional details:
logger.info("User logged in", { userId: 123, action: "login" });
logger.error("Error processing request", {
endpoint: "/api/data",
errorCode: 400,
});
Logs are automatically saved to files when logToFile is enabled. Files are rotated when they reach the size limit (32MB by default).
This package is open-source and available under the MIT License.
Developed by Chanpreet Singh & Himanshu Upreti.
Feel free to fork, contribute, or submit issues on the GitHub repository. 😊
This README can be placed in a README.md file in your project and will be displayed on your package's npm page. Adjust the GitHub repository link and other details as needed.
FAQs
A feature-rich logger for Node.js
We found that pie-logger demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.