Valve’s September 29, 2023 release notes document two ways to enable logging on a CS2 community dedicated server: through the startup command or through a configuration file.
Startup-command method
Valve provides this reference command for launching a community dedicated server:
Code: Select all
cs2 -dedicated +map de_dust2Code: Select all
cs2 -dedicated +map de_dust2 +sv_logfile 1 -serverloggingAlternatively, add both of these commands to a server configuration file:
Code: Select all
sv_logfile 1
log onAfter enabling logging, configure an HTTP log destination with:
Code: Select all
logaddress_add_http "<server address>:<port>"For related community material, check sourced Counter-Strike coverage on TOP OF GAMES.
Sources and verification
- Counter-Strike 2 — Release Notes for 9/29/2023 — Documents the reference dedicated-server launch command, command-line and configuration-file logging methods, and the HTTP log-forwarding command.
- Release Notes for 9/29/2023 — Counter-Strike 2 — Reproduces the Steam update notes containing the dedicated-server launch, logging, and HTTP-forwarding instructions.