Skip to content

View the logs

Daniel Tischner edited this page Aug 25, 2022 · 7 revisions

Overview

There are two ways to read the logs of the bots:

  • by using the logviewer
  • by manually logging in to the VPS and looking up the log files

Logviewer

  1. Ask a member of the Moderator-Team to be granted access to the logviewer.
  2. Visit the website https://togetherjava.duckdns.org:5006
  3. and login with your Discord account,
  4. accept the authorization.

discord login discord authorization

  1. You should now be able to see the logs in the logviewer 🎉

logviewer example

Quick overview

On the left side you can see three views (depending on your role, some might be missing).

  • Logs displays the actual logfiles.
  • Streamed displays the log-events as the main application sends them to the web application.
  • User-Management enables adding or removing users who can access this website and editing their roles (right click the panel).

side panel user management

Manually viewing the files

In order to read the log files of the bots directly, one has to login to the VPS and command Docker to execute the corresponding task. Only members of the Moderator-Team can do the following steps.

See Access the VPS for details of the login process.

Guide

  1. ssh togetherjava to login to the VPS
  2. Either cd ~/docker-infra/master-bot or cd ~/docker-infra/develop-bot to go to the directory of the corresponding bot
  3. Execute docker-compose logs -f
  4. Hit Ctrl + C to stop

cmd logs

Clone this wiki locally