List Icon
Mailing list Archive

2019 up to July 2022 | 20182017  |  2016  2015 2014 | 2013

The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
If you want to stay informed about news about QF-Test, you can simply subscribe to our newsletter:
Subscribe to Newsletter  

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] Logging in Terminal with Jython


  • Subject: [QF-Test] Logging in Terminal with Jython
  • From: BENHAROUS Cedric <cedric.benharous@?.com>
  • Date: Thu, 9 Nov 2017 18:02:47 +0100
  • Delivered-to: qftest-list@?.net

Hi all,

 

We have an issue concerning the use of the logging package inside a Jython server script.

It does not print any values in QF-Test 4.1.3 in Terminal (unlike the use of print).

 

Is there some specific configuration to apply ?

Code example:

import logging, sys

 

logger = logging.getLogger('someModule')

logger.addHandler(logging.StreamHandler(sys.stdout))

 

logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)

                      

logger.info("info")

logger.warn("warn")

 

Cheers,

Cédric