add self to writelog