python from eliot import start_action, to_file to_file(open('myapp-logs.log', 'w')) with start_action(action_type='myapp:operation', operation_name='login'): # ... with start_action(action_type='myapp:event', event_name='login_success'): # ...