diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-20 17:00:11 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-20 17:00:11 -0400 |
commit | 769e44e97a261d839a5ab0ace1aa07d807c1248b (patch) | |
tree | 20817c1f5ef2c08fdf709f307997a583740221a8 /qolab | |
parent | 6c79b95ab8727dac763f213f050c7839e51fee38 (diff) | |
download | qolab-769e44e97a261d839a5ab0ace1aa07d807c1248b.tar.gz qolab-769e44e97a261d839a5ab0ace1aa07d807c1248b.zip |
added logger to the Rigol scope
Diffstat (limited to 'qolab')
-rw-r--r-- | qolab/hardware/scope/rigolds1054z.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py index 0bed7e9..76478fd 100644 --- a/qolab/hardware/scope/rigolds1054z.py +++ b/qolab/hardware/scope/rigolds1054z.py @@ -10,6 +10,15 @@ import numpy as np import scipy.signal from pyvisa.constants import InterfaceType from pyvisa.errors import VisaIOError +import logging + +logging.basicConfig( + format="%(asctime)s %(levelname)8s %(name)s: %(message)s", + datefmt="%m/%d/%Y %H:%M:%S", +) +logger = logging.getLogger(__name__) +logger.setLevel(logging.INFO) + class RigolDS1054z(ScopeSCPI): |