mirror of https://github.com/m-labs/artiq.git
examples: logging from experiment
This commit is contained in:
parent
86e201c6a0
commit
ea5fbc9211
|
@ -1,3 +1,5 @@
|
||||||
|
import logging
|
||||||
|
|
||||||
from artiq import *
|
from artiq import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,6 +53,12 @@ class ArgumentsDemo(EnvExperiment):
|
||||||
self.sc2 = SubComponent2(parent=self)
|
self.sc2 = SubComponent2(parent=self)
|
||||||
|
|
||||||
def run(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.free_value)
|
||||||
print(self.boolean)
|
print(self.boolean)
|
||||||
print(self.enum)
|
print(self.enum)
|
||||||
|
|
Loading…
Reference in New Issue