Logo QF-Test

Im Archiv der Mailingliste
wertvolle Antworten finden.

 

Gratis Testen  Download  Kaufen

Thomas Max, QF-Test Training und Support

Tipp für die Recherche in der Mailingliste: Volltextsuche (oben) verwenden.

Thomas Max,
Sr. Software Engineer & Trainer, QFS

2017 bis heute 2016 2015 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2017 bis heute


[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

 

 


Videos Downloads Dokumentation Kaufen Gratis Testen