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]

Re: [QF-Test] jython/python logging library


  • Subject: Re: [QF-Test] jython/python logging library
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Mon, 03 Apr 2017 18:08:01 +0200
  • Delivered-to: qftest-list@?.net

Hello Erik,

when I run your code as an SUT script I get

    No handlers could be found for logger "root"

At least that's a response. Are you getting _any_ stdout from your
SUT? Depending on how the SUT is started its output may be redirected.

Try opening the Jython Terminal for the SUT. You should always get the
Jython output there.

Best regards,
    Greg

Erik Macisevskij <Erik.Macisevskij@?.com> writes:

> Hi,
>
> I’ve been trying to use logging library with TestRunListener and it won’t log anything to stdout. I wonder if there
> are any good reasons for that?
>
> Default code that works with Jython 2.7:
>
> import logging
>
> log = logging.getLogger('')
>
> log.setLevel(logging.INFO)
>
> log.info('info')
>
> Many thanks,
>
> Erik Macisevskij
>
> FlexTrade UK Ltd., 34th Floor, CityPoint
> 1 Ropemaker Street, London EC2Y 9AW

-- 
Gregor Schmid

E: gregor.schmid@?.de
T: +49 8171 38648-11
F: +49 8171 38648-16

Quality First Software GmbH | www.qfs.de
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer
HRB München 140833


Videos Downloads Dokumentation Kaufen Gratis Testen