diff options
-rw-r--r-- | examples/lock_eit.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/lock_eit.py b/examples/lock_eit.py index af3c894..bc78d26 100644 --- a/examples/lock_eit.py +++ b/examples/lock_eit.py @@ -1,7 +1,4 @@ import logging -# this should be done before justpy is called or log formatter does not work -logging.basicConfig(format='%(asctime)s %(levelname)8s %(name)s: %(message)s', datefmt='%m/%d/%Y %H:%M:%S') - import justpy as jp import pyvisa import numpy as np @@ -22,6 +19,10 @@ from qolab.data import TraceSetSameX, TraceXY, Trace from qolab.hardware.i_server import I800 from qolab.file_utils import get_next_data_file +# this should be done before justpy is called or log formatter does not work +logging.basicConfig(format='%(asctime)s %(levelname)8s %(name)s: %(message)s', datefmt='%m/%d/%Y %H:%M:%S') + + l = logging.getLogger('qolab.gui.web') l.setLevel(logging.INFO) l = logging.getLogger('qolab.tsdb') |