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
{{ message }}
Repository navigation
Commit 4835053
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,19 +225,21 @@ The customizable options can be found [here](https://github.com/openforcefield/o
225
225
226
226
## Logging Settings
227
227
228
-
By default, fes-ml logs messages at the `INFO` level, showing informative messages about overall progress without detailed debugging information. You can control the logging verbosity by setting the `FES_ML_LOG_LEVEL` environment variable:
228
+
Importing fes-ml does not configure logging, so it does not change your application's log output. To print fes-ml's progress messages in a script, call `config_logger()` once:
229
229
230
-
```bash
231
-
export FES_ML_LOG_LEVEL="DEBUG"
230
+
```python
231
+
from fes_ml import config_logger
232
+
233
+
config_logger()
232
234
```
233
235
234
-
To include log messages from packages other than fes-ml, set the `FES_ML_FILTER_LOGGERS`variable to 0:
236
+
You can control the logging verbosity by setting the `FES_ML_LOG_LEVEL` environment variable (default `INFO`):
235
237
236
238
```bash
237
-
exportFES_ML_FILTER_LOGGERS=0
239
+
exportFES_ML_LOG_LEVEL="DEBUG"
238
240
```
239
241
240
-
By default, this variable is set to 1, filtering out log messages from other packages.
242
+
To show only fes-ml's messages and hide those of other packages, set `FES_ML_FILTER_LOGGERS=1`.
241
243
242
244
For debugging purposes, you can report the energy decomposition of each alchemical state before and after the alchemical modification by setting the `FES_ML_LOG_DEVEL` variable to 1:
0 commit comments