change loglevel to string