Skip to content
/SLASHPLAY

How to save logs to files in CS 1.6

Type mp_logfile 1 and log on in the server console and logged events are saved to files in the logs folder, one per map.

mp_logfile

Writes the server log to files in the logs folder.

mp_logfile <0|1>

Examples

mp_logfile 1

Save logs to disk.

Values

ValueWhat it does
0 Off
1Default On

Arguments

0|1Required
1 writes log files.

What it does

With 1, logged events are saved to files in the logs folder (see logsdir), one file per map by default. Logging also has to be turned on with log on. Set it to 0 if you only want logs echoed or sent to a remote address.

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to cstrike/server.cfg. New to this? Start a CS 1.6 server first.

Your own
CS 1.6 server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.