use logger and display pid, and path