Selectable loglevel

Loglevel should be able to select.