Add PID to default logfile format string

Resolves #11346.