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/howto/log-and-cite.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,13 +42,13 @@ We reproduce here one of the examples from [scitrack](https://github.com/Huttley
42
42
43
43
By default, `apply_to` creates a `CachingLogger` that records the composable function, package versions, output paths, MD5 checksums of every result, and total elapsed time. The log is then written into the output data store. This is the recommended setting for production analyses because it gives you a complete, self-contained record of what ran and what it produced.
44
44
45
-
```python
45
+
```python { notest }
46
46
result = process.apply_to(dstore) # logger=True by default
47
47
```
48
48
49
49
You can also pass your own `CachingLogger` instance if you want to configure it beforehand or reuse one across multiple calls.
50
50
51
-
```python
51
+
```python { notest }
52
52
from scitrack import CachingLogger
53
53
54
54
LOGGER= CachingLogger()
@@ -60,7 +60,7 @@ result = process.apply_to(dstore, logger=LOGGER)
0 commit comments