
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
megaorm-logger
Advanced tools
MegaORM Logger is a simple, yet powerful utility for managing log files, with support for logging messages, retrieving entries, filtering by date, and more...
MegaORM Logger is a simple, yet powerful utility for managing log files, with support for logging messages, retrieving entries, filtering by date, and more.
Install the package using npm or yarn:
npm install megaorm-logger
const { Logger } = require('megaorm-logger');
Create an instance of the Logger class by specifying the path to your log file:
const logger = new Logger('./app.log');
Log a message to your log file:
await logger.log('This is a log message');
Retrieve all log entries as an array of objects:
const logs = await logger.get.logs();
console.log(logs);
// Output: [{ date: '2024-10-12 12:34:56', message: 'This is a log message' }, ...]
Retrieve all log messages as plain strings:
const messages = await logger.get.messages();
console.log(messages);
// Output: ['This is a log message', ...]
Retrieve log messages starting from a specific date:
const messagesFromDate = await logger.get.from('2024-10-12 00:00:00');
console.log(messagesFromDate);
// Output: ['Log message from 2024-10-12', ...]
Clear all log entries in the log file:
await logger.clear();
new Logger(path: string)
log(message: string): Promise
LoggerError if the message is invalid.clear(): Promise
LoggerError if an error occurs.get.path(): string
get.logs(): Promise
date and message properties.get.messages(): Promise<string[]>
get.from(date: string): Promise<string[]>
YYYY-MM-DD HH:MM:SS.LoggerError if the date is invalid.[YYYY-MM-DD HH:MM:SS] message.FAQs
MegaORM Logger is a simple, yet powerful utility for managing log files, with support for logging messages, retrieving entries, filtering by date, and more...
We found that megaorm-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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.