Server: Write logfile