Merge pull request #89 from joedwards32/logging_configuration_support
Add support for control over logging configuration
This commit is contained in:
commit
e456054f38
5 changed files with 31 additions and 1 deletions
|
@ -63,6 +63,10 @@ ENV CS2_SERVERNAME="cs2 private server" \
|
|||
TV_DELAY=0 \
|
||||
SRCDS_TOKEN="" \
|
||||
CS2_CFG_URL="" \
|
||||
CS2_LOG="on" \
|
||||
CS2_LOG_MONEY=0 \
|
||||
CS2_LOG_DETAIL=0 \
|
||||
CS2_LOG_ITEMS=0 \
|
||||
CS2_ADDITIONAL_ARGS=""
|
||||
|
||||
# Set permissions on STEAMAPPDIR
|
||||
|
|
|
@ -45,6 +45,10 @@ sed -i -e "s/{{SERVER_HOSTNAME}}/${CS2_SERVERNAME}/g" \
|
|||
-e "s/{{TV_RELAY_PW}}/${TV_RELAY_PW}/g" \
|
||||
-e "s/{{TV_MAXRATE}}/${TV_MAXRATE}/g" \
|
||||
-e "s/{{TV_DELAY}}/${TV_DELAY}/g" \
|
||||
-e "s/{{SERVER_LOG}}/${CS2_LOG}/g" \
|
||||
-e "s/{{SERVER_LOG_MONEY}}/${CS2_LOG_MONEY}/g" \
|
||||
-e "s/{{SERVER_LOG_DETAIL}}/${CS2_LOG_DETAIL}/g" \
|
||||
-e "s/{{SERVER_LOG_ITEMS}}/${CS2_LOG_ITEMS}/g" \
|
||||
"${STEAMAPPDIR}"/game/csgo/cfg/server.cfg
|
||||
|
||||
if [[ ! -z $CS2_BOT_DIFFICULTY ]] ; then
|
||||
|
|
|
@ -35,3 +35,10 @@ tv_relayvoice 1 // Relay voice data: 0=off, 1=on
|
|||
tv_timeout 60 // CSTV connection timeout in seconds.
|
||||
tv_title "{{SERVER_HOSTNAME}} CSTV" // Set title for CSTV spectator UI
|
||||
tv_transmitall 1 // Transmit all entities (not only director view)
|
||||
|
||||
// Logs
|
||||
|
||||
log {{SERVER_LOG}} // Turns logging 'on' or 'off', defaults to 'on'
|
||||
mp_logmoney {{SERVER_LOG_MONEY}} // Turns money logging on/off: 0=off, 1=on
|
||||
mp_logdetail {{SERVER_LOG_DETAIL}} // Combat damage logging: 0=disabled, 1=enemy, 2=friendly, 3=all
|
||||
mp_logdetail_items {{SERVER_LOG_ITEMS}} // Turns item logging on/off: 0=off, 1=on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue