Commit 41dad5d
fix: route logging to stdout, simplify format, add JOBS level
- Route all DataJoint logs to stdout instead of stderr
(avoids red highlighting in terminals/IDEs that color stderr)
- Simplify INFO/DEBUG format: remove level tag for cleaner output
- Keep [WARNING] and [ERROR] tags for actual issues
- Add JOBS log level (15, between DEBUG and INFO) for make status
messages (start/error/success) so they don't flood INFO logs
Log levels: DEBUG (10) < JOBS (15) < INFO (20) < WARNING (30) < ERROR (40)
Example output:
[2026-01-27 10:30:45] DataJoint 2.0.0 connected to postgres@localhost:5432
[2026-01-27 10:30:46][JOBS]: Making {'key': 1} -> schema.Table
[2026-01-27 10:30:47][JOBS]: Success making {'key': 1} -> schema.Table
[2026-01-27 10:31:02][WARNING]: Table xyz not found
Users can filter job messages with DJ_LOG_LEVEL=INFO (hides JOBS)
or see them with DJ_LOG_LEVEL=JOBS or DJ_LOG_LEVEL=DEBUG.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent c41dfac commit 41dad5d
2 files changed
+34
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
| 601 | + | |
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
632 | | - | |
| 632 | + | |
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
| 643 | + | |
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
5 | 19 | | |
6 | 20 | | |
7 | 21 | | |
8 | 22 | | |
9 | | - | |
10 | 23 | | |
11 | | - | |
12 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
13 | 41 | | |
14 | 42 | | |
15 | 43 | | |
| |||
0 commit comments