Page 1 of 1

timestamp & logging

Posted: Tue Oct 06, 2009 1:25 pm
by zaphod
hi tanks
with some new scripting to run some servers i screwed up the timestamps in the logfiles!
some weird coding replaces the time and date entries now:

starting bzfs with:
bzadmin callsign@server:port 1>>log.txt 2>&1
i get:

Code: Select all

[1;24r[18;1H*** 'bzflag.fr' joined the game as Observer
with:
bzadmin -ui stdout callsign@server:port 1>>$log 2>&1 (or >> log.txt)
i get:

Code: Select all

*** 'bzflag.fr' joined the game as Observer.
I got the -ts option in the config file with the logDetail.so loaded

anybody an idea how to get back the

Code: Select all

2009-10-06 12:12:12: bzflag.fr' joined the game as Observer
BIG thanks in advance for your input!



.

Re: timestamp & logging

Posted: Fri Oct 16, 2009 2:57 am
by Cobra_Fast

Code: Select all

[1;24r[18;1H
these look very close to screwed up colorcodes, and i have no idea how they got in there nor how to fix this. this is just what it looks to me.

possible solution: turn off bash coloring (i dont think thats it, but it looks kinda close to me)

Re: timestamp & logging

Posted: Fri Oct 16, 2009 4:15 am
by blast
The solution would be to not use the curses UI. Using bzadmin for logging is a bad idea. If the server crashes, bzadmin goes into an infinite loop and will consume all available CPU time.

I also have no idea what a bzfs plugin (logDetail) and a bzfs config option (-ts) has to do with bzadmin. The logDetail plugin does it's own logging information, so you won't get messages like "bzflag.fr' joined the game as Observer". You will get something like "PLAYER-JOIN 5:blast #6 BZid:180 OBSERVER IP:127.0.0.1 VERIFIED GLOBALUSER ADMIN"