adds a way to configure efficiently the WMS debug output level.
Adds logging entries too.