Fix the log lines of nested logging contexts.