1 個回答
- 最新
- 最多得票
- 最多評論
0
You need to set a handler or set basic config. If you direct the logs to stdout, they will appear in the component log.
logger.addHandler(logging.StreamHandler(sys.stdout))
# or
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
Or you could send them to a different file by using a FileHandler instead of a StreamHandler.
相關內容
- 已提問 1 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 10 個月前