import logging


def logger(name: str) -> logging.Logger:
    """
    Obtain a logger which is configured with the default refinery format.
    """
    logger = logging.getLogger(name)
    if not logger.hasHandlers():
        stream = logging.StreamHandler()
        stream.setFormatter(logging.Formatter(
            '({asctime}) {levelname} in {name}: {message}',
            style='{',
            datefmt='%H:%M:%S'
        ))
        logger.addHandler(stream)
    logger.propagate = False
    return logger