Logger.setLevel Logger.setLevel(level)[source] Set the logging level of this logger. level must be an int or a str.