{"repo":"modmail-dev/logviewer","free":true,"listed":false,"github":"https://github.com/modmail-dev/logviewer","clone":"git clone https://github.com/modmail-dev/logviewer.git","description":"This is a simple viewer for Modmail logs. It is designed to be self-hosted alongside your Modmail bot instance, allowing you to view your logs in a web interface.","language":"Python","stars":98,"topics":["discord","discord-bot","modmail","python","logviewer"],"license":"GPL-3.0","category":"chat-messaging","readme_excerpt":"Modmail Logviewer A simple webserver to view your self-hosted Modmail logs. What is this? This is a simple viewer for Modmail logs. It is designed to be self-hosted alongside your Modmail bot instance, allowing you to view your logs in a web interface. Self-Hosting Setup The method of hosting the logviewer depends on your server configurations. Below are some general instructions to help you get started on a Linux machine. Prerequisites - A Python 3.12 installation with pip included (Python 3.10-3.12 are supported) - git for your system e.g. on Debian with pyenv in bash: Deployment Run the following shell commands: Edit the .env file (e.g. nano .env ) and fill in your MongoDB connection URI. You can also customize the bind IP and port in the .env file. Then to start the app, run: [!NOTE] If you are using a virtual environment, ensure you activate it every time you reconnect your terminal session before you run/update the logviewer. You can do this by running source venv/bin/activate in the logviewer directory. You can verify the logviewer is working by navigating to http:// :8000 (if you didn't change the bind IP / port) and should be greeted with the Logviewer main page. To run the program in the background, you can use screen . Or you can use a service manager, such as systemd , which can also auto-restart the logviewer on failure and after system reboot. Remember to set the working directory and the correct Python interpreter path in your service file when using a virtual ","default_branch":null,"files":null,"tree":[],"storefront":"/r/modmail-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/modmail-dev/logviewer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}