from typing import Optional
import logging


def get_logger(logger_name: Optional[str] = None) -> logging.Logger:
    """
    Get configured logger
    :param logger_name: Name of the child logger. It's best to keep it __name__
    """
    logger = logging.getLogger('nuclear.sublog')
    if logger_name:
        return logger.getChild(logger_name)
    return logger