timestamp & logging

Need help seting up a server, or have a question on how to run one? This is the place.
Post Reply
User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

timestamp & logging

Post 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!



.
.
.
.
Image
User avatar
Cobra_Fast
Dev Monkey
Dev Monkey
Posts: 322
Joined: Sat Oct 07, 2006 11:51 am
Location: Germany
Contact:

Re: timestamp & logging

Post 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)
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: timestamp & logging

Post 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"
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
Post Reply