refactor log level