How to save server logs to a file in TF2
Type sv_logfile 1 in the server console to write connects, kills, chat and round results to log files in tf/logs.
sv_logfile
Toggles writing server events to log files.
sv_logfile <0|1> Examples
sv_logfile 1 Keep log files.
Values
| Value | What it does |
|---|---|
| 0 | Off |
| 1Default | On |
Arguments
0|1Required- 1 writes log files.
What it does
Logs record connects, kills, chat and round results. They are stored in tf/logs by default, or in the folder set by sv_logsdir.
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 tf/cfg/server.cfg. New to this? Start a TF2 server first.
Your own
TF2 server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.