반응형
기본적인 아이디어는 여기에서
import logging
logging.basicConfig(level=logging.INFO, datefmt="%m/%d/%Y %I:%M:%S %p", format="%(asctime)s:%(levelname)s:%(message)s",)
logging.info("hello")
grey = "\x1b[38;20m"
yellow = "\x1b[33;20m"
red = "\x1b[31;20m"
bold_red = "\x1b[31;1m"
reset = "\x1b[0m"
logging.info(f"{yellow}hello{reset} world")
하면 다음과 같이 나온다.

반응형
'컴퓨터관련 쪽지' 카테고리의 다른 글
| [vscode] python 환경설정 (0) | 2021.11.05 |
|---|---|
| [Azure Portal] Azure Functions 구동 로그 확인 (모니터링) (0) | 2021.08.28 |
| [Azure] Serverless Azure Function + Flask 세팅 (0) | 2021.08.27 |
| [VScode] python formatting black 설정 (0) | 2021.08.26 |
| [Azure Function] HttpTrigger interface 연습 (Serverless computing) python (0) | 2021.08.26 |
댓글