Skip to content

Commit ad7b7df

Browse files
committed
start adding new logger framework
1 parent 3fd10cf commit ad7b7df

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

GEECS-Scanner-GUI/geecs_scanner/data_acquisition/scan_manager.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
ScanStepExecutor,
9595
)
9696
from geecs_scanner.optimization.base_optimizer import BaseOptimizer
97-
from .utils import ConsoleLogger
97+
9898
from geecs_data_utils import ScanConfig, ScanMode # Adjust the path as needed
9999
from dataclasses import fields
100100

@@ -103,6 +103,8 @@
103103
GeecsDeviceInstantiationError,
104104
)
105105

106+
logger = logging.getLogger(__name__)
107+
106108
database_dict = DatabaseDictLookup()
107109

108110

@@ -206,12 +208,6 @@ def __init__(
206208
threading.Event()
207209
) # Event to signal the logging thread to stop
208210

209-
# Use the ConsoleLogger class
210-
self.console_logger = ConsoleLogger(
211-
log_file="scan_execution.log", level=logging.INFO, console=True
212-
)
213-
self.console_logger.setup_logging()
214-
215211
self.virtual_variable_list = []
216212
self.virtual_variable_name = None
217213

0 commit comments

Comments
 (0)