From 0a44dba46c447897300690a750efb2a1d4ce404e Mon Sep 17 00:00:00 2001 From: basshound Date: Wed, 1 May 2024 20:38:48 +0000 Subject: [PATCH] Update README.md --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cace22f..b431392 100644 --- a/README.md +++ b/README.md @@ -45,4 +45,24 @@ To start the server sudo ./runServer ``` -Restarting the server can be done by stopping and then starting using the above commands. \ No newline at end of file +Restarting the server can be done by stopping and then starting using the above commands. + +# Viewing Logs + +You can view a simple output of the log file by running: + +``` +sudo ./viewLog +``` + +This is simpply a wrapper for the docker command: + +``` +docker exec -it ut4hubserver cat /home/ut/LinuxServer/UnrealTournament/Saved/Logs/UnrealTournament.log +``` + +To tail the logs (to have screen refresh with any update): + +``` +docker exec -it ut4hubserver tail -F /home/ut/LinuxServer/UnrealTournament/Saved/Logs/UnrealTournament.log +``` \ No newline at end of file