He wanted to know how he could get the logs from the server using my class. Unfortunatly the answer is that you can not.
I have however written a little perl proxy and an example php script that’ll “Slow Load”/“Ajax” the log to your browser.
Go ahead and download the script
You’re going to want to place it on a server somewhere (preferably the same one as your apache/php is on, not nesicarily your game server)
my %servers_list = (
"220.127.116.11:27015" => "Fremans test server",
"10.10.10.10:27015" => "Another server"
Once you’ve done your edits you should
chmod +x logproxy.pl to make it executable.
Then go ahead and run it (Note: You should not run this script as root, it has no need to do anything special)
screen -A -m -d -S logproxy ./logproxy
Then you’re going to want to put this in a directory accessable from your webserver.
Note: This is a minimalistic implementation, I’ve knocked it up as an example – I might do more with it later.
You shouldn’t need to do much with it to get it working.
Now you have to go to your cs:s server (via RCON) and execute the following two commands
Provided you have opened port 9180 in your firewall you should see output on your srclog page.
Commenting is closed for this article.