
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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/b8d7025d-9b82-464a-954a-8e27be51fd3a
Easy Setup: Just insert the Errsole code snippet at the beginning of your app's main file. That's it!
Automated Log Collection: Errsole automatically collects all your app logs directly from the Node.js console.
Customized Logging: Errsole's custom logger provides multiple log levels, thereby enabling greater precision in logging. Additionally, you can include metadata with your logs and receive alerts for specific log events according to your preferences.
Centralized Logging: Errsole consolidates all your app logs from multiple servers into one centralized database. You can choose your preferred database system.
Interactive Web Dashboard: Easily view, filter, and search your app logs using the Errsole web dashboard.
Secure Access Control: Errsole comes with built-in authentication, ensuring that only you and your authorized development team can access the logs.
Error Notifications: Errsole delivers notifications for app crashes and custom alerts directly to your Email or Slack.
After the setup, access the Errsole Web Dashboard at http://localhost:8001/. If you have configured Errsole with a different port and path during initialization, remember to replace "8001" in the URL with your chosen port number and add your custom path to the end of the URL.
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.
Example:
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.
Example:
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.
Example:
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.
Example:
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.
Example:
errsole.debug('Debugging information');
Contribution: We welcome contributions! If you have ideas for improvements, feel free to fork the repository, make your changes, and submit a pull request.
Support: Have questions, facing issues, or want to request a feature? Open an issue on the GitHub repository.
FAQs
Collect, Store, and Visualize Logs with a Single Module
The npm package errsole receives a total of 346 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.