def set_log_level(log_level):
if not LOGBOOK_INSTALLED:<EOL><INDENT>return<EOL><DEDENT>logbook.get_level_name(log_level)<EOL>if log_level == logger.level:<EOL><INDENT>return<EOL><DEDENT>if log_level == logbook.NOTSET:<EOL><INDENT>set_logger(is_enable=False)<EOL><DEDENT>else:<EOL><INDENT>set_logger(is_enable=True)<EOL><DEDENT>logger.level = log_level<EOL>try:<EOL><INDENT>import pytablewriter<EOL>pytablewriter.set_log_level(log_level)<EOL><DEDENT>except ImportError:<EOL><INDENT>pass<EOL><DEDENT>tabledata.set_log_level(log_level)<EOL>
Set logging level of this module. Using
`logbook <https://logbook.readthedocs.io/en/stable/>`__ module for logging.

:param int log_level:
    One of the log level of
    `logbook <https://logbook.readthedocs.io/en/stable/api/base.html>`__.
    Disabled logging if ``log_level`` is ``logbook.NOTSET``.
:raises LookupError: If ``log_level`` is an invalid value.