From ea5fbc9211e78f54e2a543b88294e8f91b7c1e3e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 14 Oct 2015 16:31:07 +0800 Subject: [PATCH] examples: logging from experiment --- examples/master/repository/arguments_demo.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/master/repository/arguments_demo.py b/examples/master/repository/arguments_demo.py index d52083faa..ffb6e2ac2 100644 --- a/examples/master/repository/arguments_demo.py +++ b/examples/master/repository/arguments_demo.py @@ -1,3 +1,5 @@ +import logging + from artiq import * @@ -51,6 +53,12 @@ class ArgumentsDemo(EnvExperiment): self.sc2 = SubComponent2(parent=self) def run(self): + logging.basicConfig(level=logging.DEBUG) + logging.error("logging test: error") + logging.warning("logging test: warning") + logging.info("logging test: info") + logging.debug("logging test: debug") + print(self.free_value) print(self.boolean) print(self.enum)