logging pid and tid on Linux
minor changes to logs output