You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/examples/15_minutes_to_QCoDeS.ipynb
+19-1
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@
93
93
"cell_type": "markdown",
94
94
"metadata": {},
95
95
"source": [
96
-
"In every measurement session, it is highly recommended to have QCoDeS logging turned on. This will allow you to have all the logs in case troubleshooting is required. To enable logging, we add the following single line of code at the beginnig of our scripts after the imports:"
96
+
"In every measurement session, it is highly recommended to have QCoDeS logging turned on. This will allow you to have all the logs in case troubleshooting is required. To enable logging, we can either add the following single line of code at the beginnig of our scripts after the imports:"
97
97
]
98
98
},
99
99
{
@@ -121,6 +121,24 @@
121
121
"start_all_logging()"
122
122
]
123
123
},
124
+
{
125
+
"cell_type": "markdown",
126
+
"metadata": {},
127
+
"source": [
128
+
"or we can configure qcodes to automatically start logging on every import of qcodes, by running the following code once. (This will persist the current configuration in `~\\qcodesrc.json`)"
Copy file name to clipboardexpand all lines: docs/examples/logging/logging_example.ipynb
+20-2
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
"source": [
17
17
"## TL;DR\n",
18
18
" * There is a QCoDeS logging module: `qcodes.utils.logger`\n",
19
-
" * Call `logger.start_all_logging` at the start of every script/session to make sure all log messages get stored to the `.qcodes/logs` folder in your home directory.\n",
19
+
" * Call `logger.start_all_logging` at the start of every script/session to make sure all log messages get stored to the `.qcodes/logs` folder in your home directory, or set `logger.start_logging_on_import` to `True` in your `qcodesrc.json` configuration.\n",
20
20
" * For debugging purposes you can log messages of an individual instrument (and see the VISA dialog).\n",
21
21
" * You can obtain all logging messages in a `pandas.DataFrame` for further analysis."
22
22
]
@@ -106,6 +106,24 @@
106
106
"2. Enable logging of the IPython commands into a separate log file."
107
107
]
108
108
},
109
+
{
110
+
"cell_type": "markdown",
111
+
"metadata": {},
112
+
"source": [
113
+
"Alternatively we can configure qcodes to automatically start logging on every import of qcodes, by running the following code once. (This will persist the current configuration in `~\\qcodesrc.json`)"
0 commit comments