Change loglevel and logtype while running