When running a dedicated server, JSON-formatted log entries will be written to ~Altitude/servers/log.txt
When log.txt reaches 4 MB in size it is renamed to log_old.txt and a new log.txt file is created.
Each line in the log.txt file is a JSON-formatted entry. Do not write your own parser:
http://json.org/ provides easy to use parsing libraries for a wide variety of programming languages.
Every JSON entry has the following name-value pairs:
time: elapsed time, in milliseconds, since the active server_launcher process started (note: server_launcher process restarts on auto-update)
port: uniquely identifies the server from which this entry originated, necessary when running multiple servers from a single server_launcher (note: the "sesssionStart" and "updatePrepareRestart" entries use port=-1 because they do not belong to a specific server, but rather to the shared server_launcher process)
type: uniquely identifies the entry format; all entries of a given type have the same name-value pairs
A list of all JSON entry types and their associated parameters follows:
Code:
assist
player
victim
xp
chat
message
player
server
clientAdd
ip
nickname
player
vaporId
clientNicknameChange
ip
newNickname
oldNickname
player
vaporId
clientRemove
ip
nickname
player
reason
vaporId
consoleCommandExecute
arguments
command
group
source
customCommand
command
demolitionChargeDefused
player
demolitionChargePlanted
player
goal
assister
player
xp
kill
multi
player
source
streak
victim
xp
mapChange
map
mode
mapLoading
map
pingSummary
pingByPlayer
powerupAutoUse
player
positionX
positionY
powerup
powerupDefuse
player
positionX
positionY
powerup
xp
powerupPickup
player
positionX
positionY
powerup
powerupUse
player
positionX
positionY
powerup
velocityX
velocityY
serverHitch
changedMap
duration
serverInit
maxPlayerCount
name
serverShutdown
serverStart
sessionStart
NOTE: port=-1
date
spawn
perkBlue
perkGreen
perkRed
plane
player
skin
team
structureDamage
player
target
xp
structureDestroy
player
target
xp
teamChange
player
team
tournamentRoundEnd
losers
result
winners
tournamentStart
team0
team1
tournamentStop
updatePrepareRestart
NOTE: port=-1