set log level and set log