Move (and rename) foreground error logging global variable.