allow log level to be set