INNER CODE UNIT · Python

configure_logging

FLOCK4H/Dexter · Dexter.py:105

def configure_logging(log_dir: Path):
    configure_root_logging(
        format=f'%(asctime)s - {cc.LIGHT_CYAN}Dexter ⚡ | %(message)s{cc.RESET}',
        datefmt='%H:%M:%S',
        level=logging.INFO,
        log_file=log_dir / 'dexter.log',
        stream=sys.stdout,
        force=True,
    )


configure_logging(Path(DEX_DIR) / "dev" / "logs")

def dex_welcome():
    sys.stdout.write(f"""
{cc.MAGENTA}▓█████▄ ▓█████ ▒██   ██▒▄▄▄█████▓▓█████  ██▀███  
{cc.MAGENTA}▒██▀ ██▌▓█   ▀ ▒▒ █ █ ▒░▓  ██▒ ▓▒▓█   ▀ ▓██ ▒ ██▒
{cc.MAGENTA}░██   █▌▒███   ░░  █   ░▒ ▓██░ ▒░▒███   ▓██ ░▄█ ▒

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…