Add log level configuration.

This allows user to specify which messages to display / not display. This offers higher granularity control than the previous debug / TCP debug options.