chat logging

Help with Setup, Hardware, Performance or other Issues...Or just pimp your rig.
Post Reply
User avatar
Army of One
Private First Class
Private First Class
Posts: 62
Joined: Tue Jan 25, 2005 1:11 am
Contact:

chat logging

Post by Army of One »

How do i get the chat log plugin to write to a file instead of being in the server shell when you start a server
Some times you see me-some times you don't--and DESTRUCTION is only moments away
AlliedArmour
Sergeant
Sergeant
Posts: 831
Joined: Thu Jul 14, 2005 1:29 am

Post by AlliedArmour »

What OS?
Death Barrel
Private First Class
Private First Class
Posts: 641
Joined: Fri Jan 03, 2003 3:26 am

Post by Death Barrel »

if its linux>>>

Code: Select all

bzfs -conf confile > logfile
mistake
Private First Class
Private First Class
Posts: 124
Joined: Wed Jun 15, 2005 12:12 am

Post by mistake »

if its windows>>>

Code: Select all

bzfs -conf confile > logfile
:twisted: macosx someone? :twisted:

great works also tee (unixes, or with cygwin under windows):

Code: Select all

bzfs -conf confile | tee logfile
mistake
temporal distraction
Sergeant
Sergeant
Posts: 250
Joined: Wed Jan 05, 2005 3:12 pm

Post by temporal distraction »

For OSX

Code: Select all

./bzfs -conf /path/to/file/conf-file.conf >> /path/to/logs/log-name.log
I like to use the ".log" extention so I can watch it in real time in the console.
Longhair
Private First Class
Private First Class
Posts: 330
Joined: Tue Feb 08, 2005 6:06 pm
Location: Lancaster, PA
Contact:

Post by Longhair »

I'm not sure about Windows, but for Linux, you want:

Code: Select all

bzfs -conf /path/to/conf/file >> logfile
if you want the log to be appended to. In other words, it just keeps adding on to the end of the file.

if you use:

Code: Select all

bzfs -conf /path/to/conf/file > logfile
it will overwrite the file each time the server starts.

Notice that the only difference here is the different number of > characters.

As mistake mentioned, tee is very handy. Basically, it shows everything in your console, AND puts the same info into a file.

[/code]
User avatar
Ck_asdf
Private First Class
Private First Class
Posts: 112
Joined: Sat May 06, 2006 6:53 pm
Location: 28655
Contact:

Post by Ck_asdf »

I tried this in Windows.
bzfs -conf ck.txt >> cklog.log

I then opened bz, used localhost:5155, played for a few seconds, said a couple of things, then closed bzflag, then the server, and then opened the created log file. It was blank.

I repeated the above process, but removed one of the ">" but still got a blank log file at the end of the experiment.

What do I need to do to get this to run, and is it different in Linux (where I mainly host my servers)?

Thanks much, have a great day.
Image
Post Reply