from eliot import to_file, start_action # Configure Eliot to write logs to a file to_file(open("mylog.txt", "w")) with start_action(action_type="myapp:myaction", param1="value1", param2="value2"): # Perform some task print("Task execution") print("Logging completed") $ eliot-tree mylog.txt


上一篇:
下一篇:
切换中文