()
Setup default tljh logger
Setup default tljh logger
Setup default tljh logger
def init_logging():
    """Setup default tljh logger"""
    logger = logging.getLogger("tljh")
    os.makedirs(INSTALL_PREFIX, exist_ok=True)
    file_logger = logging.FileHandler(os.path.join(INSTALL_PREFIX, "installer.log"))
    file_logger.setFormatter(logging.Formatter("%(asctime)s %(message)s"))
    logger.addHandler(file_logger)

    stderr_logger = logging.StreamHandler()
    stderr_logger.setFormatter(logging.Formatter("%(message)s"))
    logger.addHandler(stderr_logger)
    logger.setLevel(logging.INFO)
def init_logging ( ) : logger = logging . getLogger ( "tljh" ) os . makedirs ( INSTALL_PREFIX , exist_ok = True ) file_logger = logging . FileHandler ( os . path . join ( INSTALL_PREFIX , "installer.log" ) ) file_logger . setFormatter ( logging . Formatter ( "%(asctime)s %(message)s" ) ) logger . addHandler ( file_logger ) stderr_logger = logging . StreamHandler ( ) stderr_logger . setFormatter ( logging . Formatter ( "%(message)s" ) ) logger . addHandler ( stderr_logger ) logger . setLevel ( logging . INFO )