Log file
Re: Log file
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.
Re: Log file
So do I just type -echo filenamehere.txt into the .conf file? Or is it something else? Thanks.
Re: Log file
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).
Re: Log file
I think I will go for the debug option. Will it make the file automatically, if not, how do I specify the file?
Re: Log file
You will have to redirect output to a file using whatever method you want (which depends on the OS).
-
- Private First Class
- Posts: 122
- Joined: Sat May 10, 2008 9:38 pm
Re: Log file
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
bzflag -echo > /home/steve/bzflag/logs/`date +%h-%d_%Y_%H-%M`.log
Re: Log file
Also, note that that will not work on Windows.
Re: Log file
Would I do that in the terminal or in bzfs?
-
- Private First Class
- Posts: 122
- Joined: Sat May 10, 2008 9:38 pm
Re: Log file
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.