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

ASF GitHub Bot commented on DISPATCH-1536:
------------------------------------------

ChugR commented on pull request #678: DISPATCH-1536: Microsecond timestamp 
utility for self-tests
URL: https://github.com/apache/qpid-dispatch/pull/678
 
 
   This commit pulls the Logger class out of system_tests_edge_router and
   places it into system_tests for easy access.
   
   An example consumer of Logger is the MobileAddressTest. That test creates
   a logger and loads it with facts as the test progresses but it doesn't print
   anything unless there is a test failure.
   
   By default Logger does not print to the console and it saves each log
   line as it goes. When Logger is initialized either of these defaults
   may be overridden.
   
   How to print to the console with a timestamp:
   
       from system_test import Logger
       ...
       self.log2 = Logger(print_to_console=True, save_for_dump=False)
       self.log2.log("Help I'm a Rock")
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Tests needs common utility for printing timestamped messages
> ------------------------------------------------------------
>
>                 Key: DISPATCH-1536
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1536
>             Project: Qpid Dispatch
>          Issue Type: Improvement
>          Components: Tests
>    Affects Versions: 1.10.0
>            Reporter: Chuck Rolke
>            Assignee: Chuck Rolke
>            Priority: Major
>
> Rather than using naked python print statements, a test-system utility could 
> prefix the text with a timestamp and flush to stdout.
> The timestamp would correlate the test progress precisely with the router log 
> files.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to