qipe-nlab / Labber-PSICT

The Pulse-Sequence Instrument Control Tool. Developing scripts to allow string-based input to Labber for more flexible control over pulse sequence configurations.
MIT License
3 stars 1 forks source link

Set up proper logging for PSICT #3

Closed SamWolski closed 5 years ago

SamWolski commented 5 years ago

Original report by Samuel Wolski (Bitbucket: 557058:90b732eb-6ab1-4b27-9495-eb00eafde259, GitHub: samwolski).


The PSICT module currently utilizes a very hacky means of logging output to the console, namely using function-specific verbosity parameters. This is obviously nonsense, but I didn't know better when I first wrote the module.

Writing correct logging using the python stdlib logger module will not only enable more robust logging of the actual PSICT module, but also enable greater interoperability with higher-level logging in external scripts.

Note that this is a relatively medium-term goal.

SamWolski commented 5 years ago

Original comment by Samuel Wolski (Bitbucket: 557058:90b732eb-6ab1-4b27-9495-eb00eafde259, GitHub: samwolski).


Added logging infrastructure for both worker- and master-level scripts in 1.2