Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Errsole is an open-source logger for Node.js. It has a built-in web dashboard to view, filter, and search your app logs.
https://github.com/errsole/errsole.js/assets/3775513/b59424fa-c3b3-4a65-b603-e35499fe4263
Just include the Errsole package in your code—no need for dedicated servers, software installations, or complicated configurations.
Errsole automatically collects all logs from the Node.js console. Additionally, it provides a custom logger with multiple log levels and allows you to include metadata with your logs for better context. Read More
Store your logs wherever you want—whether in a file or any database of your choice. You can also configure log rotation to specify how long logs should be retained.
View, filter, and search through your logs using the built-in Web Dashboard. Secure authentication and team management features ensure that only you and your team can access the logs.
Get immediate notifications when your app crashes or encounters critical errors. The notification includes the error message, the app name, the environment, the server name, and a direct link to view the error in your logs.
Errsole's AI Copilot analyzes your error logs, pinpoints the exact location in the code where the error occurred, explains the cause of the error, and suggests a fix.
A Node.js app using Errsole Logger can handle 90,000 more requests per minute than when using Elasticsearch and 70,000 more requests per minute than when using Amazon CloudWatch. Read More
After completing the setup, you can access the Errsole Web Dashboard through the following methods:
http://localhost:8001/
.If you initialized Errsole with a different port or specified a custom path, adjust the URL as follows:
http(s)://YourServerIP:CustomPort/YourCustomPath
If you encounter issues accessing port 8001 due to firewall restrictions, or if you prefer to host the Errsole Web Dashboard on your primary domain/port, you can configure the Errsole Proxy Middleware in your app. Here is a step-by-step guide: Proxy Middleware Configuration
The log function is used to log messages or information. It can accept one or more arguments, which can be strings, numbers, JavaScript objects, or Error objects.
errsole.log('Logging a message');
errsole.log('Multiple', 'arguments', 'are supported');
errsole.log('Logging with a variable:', var1);
errsole.log(new Error('An error occurred'));
errsole.log('Logging with an error object:', errorObject);
The alert function logs a message and sends a notification to configured channels, such as Email or Slack. It accepts the same types of arguments as the log function.
errsole.alert('Alert! Something critical happened');
The error function is specifically designed to log errors. It accepts the same types of arguments as the log function.
errsole.error(new Error('An error occurred'));
The warn function is used to log warning messages. It accepts the same types of arguments as the log function.
errsole.warn('This is a warning message');
The debug function logs debug information, typically used for troubleshooting during development. It accepts the same types of arguments as the log function.
errsole.debug('Debugging information');
In Errsole's custom logger, you can include metadata with your logs. This metadata can be any contextual information, such as HTTP requests or database query results. In the Errsole Web Dashboard, you can view this metadata in a clean JSON viewer without cluttering the log messages.
To include metadata in your logs, use the meta
function followed by the appropriate logging function (error, log, etc.).
errsole.meta({ reqBody: req.body, queryResults: results }).error(err);
errsole.meta({ email: req.body.email }).log('User logged in');
The meta
function must be the first function in the chain, followed by the desired logging function.
Encountering issues? Open an issue on our GitHub repository.
Have questions? Use our Q&A forum.
Want to request a feature or share your ideas? Use our discussion forum.
Want to contribute? First, share your idea with the community in our discussion forum to see what others are saying. Then, fork the repository, make your changes, and submit a pull request.
FAQs
Collect, Store, and Visualize Logs with a Single Module
The npm package errsole receives a total of 339 weekly downloads. As such, errsole popularity was classified as not popular.
We found that errsole 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.