intra-mart Accel Platform IM-LogicDesigner仕様書 第13版 2019-08-01

5.6. ログ設定

5.6.1. IM-LogicDesignerログ

IM-LogicDesignerではロジックフロー実行時の内部的な実行フェーズと、そのフェーズの中で扱っている変数についての詳細をログとして出力させることが可能です。
出力されるログの例は以下の通りです。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
[DEBUG] LOGIC_FLOW_LOG - [] create session. (flowId=log)
[DEBUG] LOGIC_FLOW_LOG - [] [BEGIN_FLOW] execute session. (flowId=log, inputData={})
[DEBUG] LOGIC_FLOW_LOG - [] [BEFORE_EXECUTION] execute task. (executeId=im_lock1, taskId=ApplicationElementKey(elementId=im_lock), inputData=locking)
[DEBUG] LOGIC_FLOW_LOG - [] [AFTER_EXECUTION] task result. (executeId=im_lock1, taskId=ApplicationElementKey(elementId=im_lock), result=LockDataObject(key=locking))
[DEBUG] LOGIC_FLOW_LOG - [] [BEFORE_EXECUTION] execute task. (executeId=im_logger1, taskId=ApplicationElementKey(elementId=im_logger), inputData=hello world)
[INFO] j.c.i.f.l.e.g.OutputLogTask - [] Hello World.
[DEBUG] LOGIC_FLOW_LOG - [] [AFTER_EXECUTION] task result. (executeId=im_logger1, taskId=ApplicationElementKey(elementId=im_logger), result=null)
[DEBUG] LOGIC_FLOW_LOG - [] [BEFORE_EXECUTION] execute task. (executeId=im_releaseLock1, taskId=ApplicationElementKey(elementId=im_releaseLock), inputData=locking)
[DEBUG] LOGIC_FLOW_LOG - [] [AFTER_EXECUTION] task result. (executeId=im_releaseLock1, taskId=ApplicationElementKey(elementId=im_releaseLock), result=null)
[DEBUG] LOGIC_FLOW_LOG - [] [END_FLOW] session result. (flowId=log, executionTime=38ms, result=null)
設定方法の詳細は「ログ仕様書」- 「IM-LogicDesignerログ」を参照してください。

5.6.2. ユーザ定義タスク(REST)詳細実行ログ

ユーザ定義タスク」 - 「REST」で定義したREST-APIに関して実行時に送信されたリクエスト、および、受信したレスポンスを含む詳細情報をログとして出力させることが可能です。
設定内容は以下の通りです。
ロガー名 jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http
有効となるログレベル DEBUG
出力先 (任意)
設定方法の詳細は「ログ仕様書」 - 「ログ設定」、および、「Logger」を参照してください。
以下は logger.xml へ設定した場合の一例です。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

    <!-- appender設定は省略しています。 -->

    <logger name="jp.co.intra_mart.system.repackage.httpcomponents_4_4_1.org.apache.http">
        <level value="debug" />
    </logger>

</configuration>
詳細実行ログの設定を行うことにより出力されるログの例は以下の通りです。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[DEBUG] j.c.i.s.r.h.o.a.h.c.p.RequestAddCookies - [] CookieSpec selected: default
[DEBUG] j.c.i.s.r.h.o.a.h.c.p.RequestAuthCache - [] Auth cache not set in the context
[DEBUG] j.c.i.s.r.h.o.a.h.i.c.PoolingHttpClientConnectionManager - [] Connection request: [route: {}->http://<HOST>:<PORT>][total kept alive: 0; route allocated: 0 of 5; total allocated: 0 of 10]
[DEBUG] j.c.i.s.r.h.o.a.h.i.c.PoolingHttpClientConnectionManager - [] Connection leased: [id: 0][route: {}->http://<HOST>:<PORT>][total kept alive: 0; route allocated: 1 of 5; total allocated: 1 of 10]
[DEBUG] j.c.i.s.r.h.o.a.h.i.e.MainClientExec - [] Opening connection {}->http://<HOST>:<PORT>
[DEBUG] j.c.i.s.r.h.o.a.h.i.c.DefaultHttpClientConnectionOperator - [] Connecting to <HOST>/XX.YY.ZZ.WW:<PORT>
[DEBUG] j.c.i.s.r.h.o.a.h.i.c.DefaultHttpClientConnectionOperator - [] Connection established XX.YY.ZZ.WW:<PORT><->XX.YY.ZZ.WW:<PORT>
[DEBUG] j.c.i.s.r.h.o.a.h.i.e.MainClientExec - [] Executing request POST /imart/logic/api/simple/message/flow HTTP/1.1
[DEBUG] j.c.i.s.r.h.o.a.h.i.e.MainClientExec - [] Target auth state: UNCHALLENGED
[DEBUG] j.c.i.s.r.h.o.a.h.i.e.MainClientExec - [] Proxy auth state: UNCHALLENGED

[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 >> POST /imart/logic/api/simple/message/flow HTTP/1.1
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 >> User-Agent: LOGIC-DESIGNER INTRAMART/8.0 Version/8.0.0
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 >> Content-Length: 37
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 >> Content-Type: application/x-www-form-urlencoded; charset=UTF-8
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 >> Host: <HOST>:<PORT>
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 >> Connection: Keep-Alive
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 >> Accept-Encoding: gzip,deflate

[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 << HTTP/1.1 200 OK
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 << Server: Resin/4.0.48
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 << Cache-Control: private
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 << Set-Cookie: jp.co.intra_mart.session.cookie=; path=/imart; expires=Thu, 01-Dec-1994 16:00:00 GMT
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 << Set-Cookie: JSESSIONID=aaas0JESrb8-b6zhBOgyv; path=/
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 << Content-Type: application/json; charset=utf-8
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 << Content-Length: 4
[DEBUG] j.c.i.s.r.h.o.a.h.headers - [] http-outgoing-0 << Date: Wed, 20 Jul 2016 05:27:54 GMT

[DEBUG] j.c.i.s.r.h.o.a.h.i.e.MainClientExec - [] Connection can be kept alive indefinitely
[DEBUG] j.c.i.s.r.h.o.a.h.c.p.ResponseProcessCookies - [] Cookie accepted [jp.co.intra_mart.session.cookie="", version:0, domain:<HOST>, path:/imart, expiry:Fri Dec 02 01:00:00 JST 1994]
[DEBUG] j.c.i.s.r.h.o.a.h.c.p.ResponseProcessCookies - [] Cookie accepted [JSESSIONID="aaas0JESrb8-b6zhBOgyv", version:0, domain:<HOST>, path:/, expiry:null]
[DEBUG] j.c.i.s.r.h.o.a.h.i.c.PoolingHttpClientConnectionManager - [] Connection [id: 0][route: {}->http://<HOST>:<PORT>] can be kept alive indefinitely
[DEBUG] j.c.i.s.r.h.o.a.h.i.c.PoolingHttpClientConnectionManager - [] Connection released: [id: 0][route: {}->http://<HOST>:<PORT>][total kept alive: 1; route allocated: 1 of 5; total allocated: 1 of 10]