New mechanism to set log level dynamically.
This still needs some more work on the performance side of things: it's
working at this point but won't perform.