Add configuration option for logging levels

Implements a flexible logging levels key-value pair list just like kernel settings and shamelessly rips off a bit of code to achieve this