Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

errsole

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

errsole

Logger with a Built-in Web Dashboard

  • 2.7.0
  • npm
  • Socket score

Version published
Weekly downloads
457
decreased by-27.23%
Maintainers
1
Weekly downloads
 
Created
Source

Node.js Logger with a Built-in Dashboard

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

Features

  • 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. Read More

  • 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.

  • Data Retention: You can specify the number of days you wish to keep your app logs.

Setup

Web Dashboard Access

After completing the setup, you can access the Errsole Web Dashboard through the following methods:

  1. Local Environment: Open your web browser and visit http://localhost:8001/.
  2. Remote Server: If you have deployed Errsole on a remote server, use the server's IP address or domain name followed by the port number (e.g., YourServerIP:8001 or YourDomain:8001).
Note

If you initialized Errsole with a different port or specified a custom path, adjust the URL as follows:

  1. Replace 8001 with your chosen port number.
  2. Append your custom path to the end of the URL.

http(s)://YourServerIP:CustomPort/YourCustomPath

Proxy Middleware Configuration

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

Custom Logging Functions

log / info

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);

alert

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');

error

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'));

warn

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');

debug

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 and Support

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.

License

MIT

Keywords

FAQs

Package last updated on 13 May 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc