Added the ability to reinit the logger
Reinit logging for apache server
Reinit logging when create a new thread