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.
But if you want to stay informed about news about QF-Test, you can simply
Subscribe to Newsletter  

To get up-to-date information about each release - including minor releases - you can
subscribe to the RSS feed or follow us on social media.
Alternatively, QF-Test also provides release information itself.

Another source of information is our blog, where there are current articles on general topics, on the company QFS and also various "how-tos"
subscribe to blog


[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