Server log vs console dump

Discussions about Servers
Buggie
Godlike
Posts: 1762
Joined: Sat Mar 21, 2020 5:32 am

Server log vs console dump

Post by Buggie » Sun Oct 16, 2022 5:18 am

If you use well-known script ucc.init, then you in troubles - there no server log, only console dump.

Not all info dumped into console. You need have both, for track and solve different kind of problems.

For fix this, you need specify log=server.log somewhere in ucc.init config, for sent it as param to ucc.

Log appear as server.log in your System dir. If you want use Logs dir: log=../Logs/server.log

There example how do that:
https://github.com/OldUnreal/UnrealTour ... 1255611528

Optionally you can make some renaming some where in ucc.init for store not only last server.log, but last few.

Or you can make it date based via bash power. Be sure it not flood your entire server with logs.

AFAIK ucc.init come from ASU: https://github.com/abfackeln/ut/
So possible it can be patched here, so all who use it can use it with proper logs.

User avatar
Barbie
Godlike
Posts: 2478
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Server log vs console dump

Post by Barbie » Sun Oct 16, 2022 6:20 am

IDK what was the original content of ucc.init after my modifications, but I use

Code: Select all

./ucc-bin ${OPTIONS} >> $MyLogFile &
Buggie wrote:
Sun Oct 16, 2022 5:18 am
Or you can make it date based via bash power. Be sure it not flood your entire server with logs.

Code: Select all

ut-server/Logs# ls ucc.init*.log | head
ucc.init-2018-01-01-210741.log
ucc.init-2018-01-02-222456.log
ucc.init-2018-01-03-083436.log
ucc.init-2018-01-05-000108.log
ucc.init-2018-01-06-000336.log
ucc.init-2018-01-08-115245.log
ucc.init-2018-01-08-215041.log
ucc.init-2018-01-11-023943.log
ucc.init-2018-01-12-023739.log
ucc.init-2018-01-12-024541.log

ut-server/Logs# ls ucc.init*.log | wc -l
3917

ut-server/Logs# du -hs
8,3G
:loool:
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Buggie
Godlike
Posts: 1762
Joined: Sat Mar 21, 2020 5:32 am

Re: Server log vs console dump

Post by Buggie » Sun Oct 16, 2022 6:25 am

$MyLogFile - be console dump. Not server log.
Server log able write server only. So in your options you need pass parameter for it.

User avatar
Que
Masterful
Posts: 671
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...

Re: Server log vs console dump

Post by Que » Sun Oct 16, 2022 1:17 pm

yes in line ~ 115 of ucc.init edit it and change to;

Code: Select all

114  fi
115  MYEXECMD="./ucc server $TMP --nohomedir --lanplay log=server.log"
116  OUTLOG="$MYLOGFILE"
by default it sends to "null"
*Join our Discord Here.*
Our most popular mods - MVX , SSB , SmartWFL , UTCmds
Show
~Our Servers~