logging for client