Change log format and use mutex when accessing IO
Verbose logs
Fix cannot ping when redirect