You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/06/11 19:17:00 UTC

[jira] [Commented] (DISPATCH-1688) Scraper needs a way to inject debug statements into log data web page

    [ https://issues.apache.org/jira/browse/DISPATCH-1688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17133610#comment-17133610 ] 

ASF subversion and git services commented on DISPATCH-1688:
-----------------------------------------------------------

Commit e6eadab5fc4e7cd6be55d80b0943b3508a453c93 in qpid-dispatch's branch refs/heads/master from Charles E. Rolke
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=e6eadab ]

DISPATCH-1688: Inject literal log lines into scraper output


> Scraper needs a way to inject debug statements into log data web page
> ---------------------------------------------------------------------
>
>                 Key: DISPATCH-1688
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1688
>             Project: Qpid Dispatch
>          Issue Type: Improvement
>          Components: Tools
>    Affects Versions: 1.12.0
>            Reporter: Charles E. Rolke
>            Assignee: Charles E. Rolke
>            Priority: Major
>             Fix For: 1.13.0
>
>
> For debug purposes one may create log statements originating from log source *_SCRAPER_* and these messages are copied verbatim into the scraper main output web page. This will put the debug scraper logs in temporal order along with the AMQP traffic.
> Note that the SCRAPER log source does not need to be created in the router's log sources setup but can be generated on-the-fly at any time in any module.
> A log statement like
> {noformat}
> qd_log(qd_log_source("SCRAPER"), QD_LOG_CRITICAL, "Crazy event 42 happened!"
> {noformat}
> will result in a scraper display like
> {noformat}
> ◊  2020-06-11 10:56:54.694247 A0#378 INT.A [A0_6] <- [C0_1] EA1 transfer [1,3] (0) settled transfer_2 - 163 bytes transfer presettled
> ◊  2020-06-11 10:56:54.695489 A0#402 INT.A [A0_6] -> [C0_1] EA1 flow [1,3] (1,32)
> ◊  2020-06-11 10:56:54.695575 A0#404 INT.A [A0_6] -> [C0_1] EA1 transfer [1,4] (0) settled transfer_3 - 161 bytes transfer presettled
> ◊  2020-06-11 10:56:54.695658 C0#206 EA1 [C0_1] <- [A0_6] INT.A flow [1,3] (1,32)
> ◊  2020-06-11 10:56:54.695697 C0#207 EA1 [C0_1] <- [A0_6] INT.A transfer [1,4] (0) settled transfer_3 - 161 bytes transfer presettled
> ◊  2020-06-11 10:56:54.696249 C0#223 EA1 [] [] SCRAPER (critical) Crazy event 42 happened!
> ◊  2020-06-11 10:56:54.696635 C0#237 EA1 [C0_4] -> [] peer_11 attach [0,0] receiver link_31 (source: none, target: "$management", class: client)
> ◊  2020-06-11 10:56:54.696689 C0#240 EA1 [C0_4] -> [] peer_11 flow [0,0] (0,250)
> ◊  2020-06-11 10:56:54.696713 C0#241 EA1 [C0_1] -> [A0_6] INT.A flow [1,4] (1,250)
> ◊  2020-06-11 10:56:54.696790 A0#408 INT.A [A0_6] <- [C0_1] EA1 flow [1,4] (1,250)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org