Try this: 
 
function logPlayerPos( player ) 
     
    local x,y,z = getElementPosition( player )   
    outputServerLog ( "Position (x,y,z) => " .. x .. " , " .. y .. " , " .. z)   
    outputChatBox ( "Your Position (x,y,z) => " .. x .. " , " .. y .. " , " .. z, player) 
     
end 
  
addCommandHandler ( "savepos", logPlayerPos) 
 
This will log your current position to \server\mods\deathmatch\logs\server.log