Log file

Need help seting up a server, or have a question on how to run one? This is the place.
Post Reply
cepris
Private First Class
Private First Class
Posts: 132
Joined: Wed Dec 01, 2010 6:49 am

Log file

Post by cepris »

Hi, I saw in the wiki/manpages how to make a report log file, but I was wondering if it was possible to make a chat message log file? Or would I used bzadmin for that?
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Log file

Post by blast »

Use the -echo command line option for the client. If you are on Windows, it will create a stdout.txt file (I forget where, exactly). If you are on OSX/Linux/BSD/etc, you can redirect the output to a file of your choice.
"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
darkid
Private First Class
Private First Class
Posts: 131
Joined: Wed Aug 12, 2009 5:03 pm

Re: Log file

Post by darkid »

/savemsgs works quite well for me.
Darkid--Not a happy camper.
cepris
Private First Class
Private First Class
Posts: 132
Joined: Wed Dec 01, 2010 6:49 am

Re: Log file

Post by cepris »

So do I just type -echo filenamehere.txt into the .conf file? Or is it something else? Thanks.
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Log file

Post by blast »

Maybe I'm confused what you are trying to do. Are you wanting to log chat from the server or the client? If the server (since this is the server setup forum...) then you can do that a couple ways. If you increase the debugging level to at least 1 (add a single -d to your conf) and then redirect output to a file, you will get chat. The other way is by leaving the debug level at 0, and then loading the logDetail plugin (and then again, redirecting output to a file).
"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
cepris
Private First Class
Private First Class
Posts: 132
Joined: Wed Dec 01, 2010 6:49 am

Re: Log file

Post by cepris »

I think I will go for the debug option. Will it make the file automatically, if not, how do I specify the file?
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Log file

Post by blast »

You will have to redirect output to a file using whatever method you want (which depends on the OS).
"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
dereliction of duty
Private First Class
Private First Class
Posts: 122
Joined: Sat May 10, 2008 9:38 pm

Re: Log file

Post by dereliction of duty »

example of what I've used for years which keeps files with the date timestamp as the name of the file (client side, linux os);

bzflag -echo > /home/steve/bzflag/logs/`date +%h-%d_%Y_%H-%M`.log
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Log file

Post by blast »

Also, note that that will not work on Windows.
"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
cepris
Private First Class
Private First Class
Posts: 132
Joined: Wed Dec 01, 2010 6:49 am

Re: Log file

Post by cepris »

Would I do that in the terminal or in bzfs?
dereliction of duty
Private First Class
Private First Class
Posts: 122
Joined: Sat May 10, 2008 9:38 pm

Re: Log file

Post by dereliction of duty »

going by your sig, I'll assume linux. you can do that in a terminal, or add it to a file and call that file up to launch bz with.
Post Reply