Note
Click here to download the full example code
Logging Functionality¶
a demonstration of the logging functionality – output is logged to ~/pyspecdata.log (or the same name with a number included if multiple scripts are running at the same time
C:\Users\jmfranck\pyspecdata.0.log appears to be locked or otherwise inaccessible: I'm going to explore other options for fileno
---------- logging output to C:\Users\jmfranck\pyspecdata.2.log ----------
--> log_test.py(11):root <module> 2023-03-06 15:30:14,094
INFO: Something, something, something, dark side...
from pyspecdata import *
mylogger = init_logging("info")
mylogger.info("Something, something, something, dark side...")
Total running time of the script: ( 0 minutes 0.001 seconds)