AWS SWF API call logging for Ruby Flow framework

2019-07-20 16:52发布

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

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?

1条回答
Summer. ? 凉城
2楼-- · 2019-07-20 17:32

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 } }

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

查看更多
登录 后发表回答