結果 : how to add logger in python code