pip install eliot python import eliot from eliot import Message, start_action python import eliottree tree = eliottree.exclusive_logger() tree.start() python with start_action(action_type='database:query', query='SELECT * FROM users') as action: action.add_success_fields(result_rows=10) Message.new(level='debug', message='System initialized') .add_field('subsystem', 'cache') .add_field('status', 'ok') .write() python tree.write()


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