def log_level(self,<EOL>level: typing.Union[str, int]=None,<EOL>*args,<EOL>**kwargs) -> typing.Union[None, str]:
if level is None:<EOL><INDENT>return self.root_logger.getEffectiveLevel()<EOL><DEDENT>try:<EOL><INDENT>value = int(level)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT>self.root_logger.setLevel(value)<EOL>
Args:
    level:

Returns:
    The log level if a `level` is passed in