def log(message: str, *args: str, category: str='<STR_LIT:info>', logger_name: str='<STR_LIT>'):
global _DEBUG_ENABLED<EOL>if _DEBUG_ENABLED:<EOL><INDENT>level = logging.INFO<EOL><DEDENT>else:<EOL><INDENT>level = logging.CRITICAL + <NUM_LIT:1><EOL><DEDENT>with _create_logger(logger_name, level) as logger:<EOL><INDENT>log_fn = getattr(logger, category, None)<EOL>if log_fn is None:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(category))<EOL><DEDENT>log_fn(message, *args)<EOL><DEDENT>
Log a message to the given logger.

    If debug has not been enabled, this method will not log a message.

    Parameters
    ----------
    message: str
        Message, with or without formatters, to print.
    args: Any
        Arguments to use with the message. args must either be a series of
        arguments that match up with anonymous formatters
        (i.e. "%<FORMAT-CHARACTER>") in the format string, or a dictionary
        with key-value pairs that match up with named formatters
        (i.e. "%(key)s") in the format string.
    logger_name: str
        Name of logger to which the message should be logged.