Ruby Flow框架的AWS SWF API调用日志记录 [英] AWS SWF API call logging for Ruby Flow framework

查看:80
本文介绍了Ruby Flow框架的AWS SWF API调用日志记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我需要能够看到每个决策者的日志,并且活动从给出的内容以及失败的方式等开始

So I need to be able to see the logs for each decider and activity start with what it was given and how it failed, etc

我熟悉文档,但是只允许mw查看注册和弃用,我需要记录内部信息并能够看到它们……我正在使用Ruby和flow框架.我已经搜索过文档,却找不到任何东西....有人可以帮助我吗?

I am familiar with THIS document but that only allows mw to see registrations and deprecations, I need the internals to be logged and to be able to see them... I am using Ruby and the flow framework. I have scoured the docs and cannot find anything.... Can anyone help me?

推荐答案

再一次,经过许多小时的搜索和搜寻源代码,我似乎已经回答了我自己的问题.如下运行活动或决策程序时,您需要传递记录器:

Once again, after many MANY hours of searching and scouring the source code, I appear to have answered my own question. You need to pass in a logger when you run an activity or decider as follows:

some_decider_class.new(swf_domain.client, swf_domain, worker_class.task_list, worker_class) { { use_forking: false, logger: logger } }

您还可以在配置SDK时将其作为AWS模块的一部分提供.

You can also provide it as part of the AWS module while configuring the SDK.

这篇关于Ruby Flow框架的AWS SWF API调用日志记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆