pip install eliot python from eliot import start_action, to_file to_file(open("output.log", "w")) with start_action(action_type="user:login", username="admin"): python from eliot import Field, Message class MyCustomEvent(Message): field1 = Field() with start_action(action_type="custom"): MyCustomEvent(field1="value")


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