From 3a51417b34eee4cead0d7076598edd61469d8a21 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 13 Oct 2024 15:04:21 -0400 Subject: added logger --- qolab/hardware/scope/sds800xhd.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'qolab/hardware/scope/sds800xhd.py') diff --git a/qolab/hardware/scope/sds800xhd.py b/qolab/hardware/scope/sds800xhd.py index f1e0d98..9fd67df 100644 --- a/qolab/hardware/scope/sds800xhd.py +++ b/qolab/hardware/scope/sds800xhd.py @@ -11,6 +11,15 @@ import numpy as np import scipy.signal from pyvisa.constants import InterfaceType +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 SDS800XHD(SDS1104X): """Siglent SDS800XHD scope""" -- cgit v1.2.3