Add logger option for using a custom logger

In addition I reformatted respawning message and added worker's pid to It.

Before:
```
worker #7 (4124) must be replaced, respawning in 0
```
After:
```
[71004] worker (7:4124) must be replaced, respawning in 0
```