fixes(logging): reset stdout/stderr lines

Reset the stdout/stderr lines when we submit metrics.