Allow loglevel to be stringy or inty