Hallo zusammen,
eine Frage zum Logging aus Funktionen in Logiken heraus. In folgendem Beispiel sehe ich im Logfile nur die Nachricht, "Starting logic test.py". Wie bekomme ich hin, dass die Info "Logging event A" aus der Funktion doSomething auch geloggt wird? Hier die Beispiellogik sowie die Konfiguration der Logging.yaml:
Logging.yaml:
Viele Grüße
eine Frage zum Logging aus Funktionen in Logiken heraus. In folgendem Beispiel sehe ich im Logfile nur die Nachricht, "Starting logic test.py". Wie bekomme ich hin, dass die Info "Logging event A" aus der Funktion doSomething auch geloggt wird? Hier die Beispiellogik sowie die Konfiguration der Logging.yaml:
Code:
#!/logics/test.py #Funktion in Logik: def doSomething(sh): logger.info("Logging event A") pass #Reguläre Logik: logger.info("Starting logic test.py") doSomething(sh)
Code:
logics.test: level: DEBUG
Kommentar