Enable console log according to log level.