Do not configure logging if already configured.

The default logging handlers inside the host are run last. So, if you implement your own logging handler, any configuration you do will be overridden by the default.

This fix adds a check to see if any logging framework has already been configured. If yes, the default handler will do nothing.