How to save server logs to a file in CS2
Type sv_logfile 1 in the server console, together with log on, to write the server logs to files on disk.
sv_logfile
Toggles writing server logs to a file.
sv_logfile <0|1> Examples
sv_logfile 1 Write logs to disk.
Values
| Value | What it does |
|---|---|
| 0 | Off |
| 1 | On |
Arguments
0|1Required1turns it on,0turns it off.trueandfalsealso work.
What it does
With it on, the server writes its logs to files on disk. Use it together with log on.
The game's own description: Log server information in the log file.
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 game/csgo/cfg/server.cfg. New to this? Start a CS2 server first.
Your own
CS2 server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.