Commit a0510ce
committed
chronicles: bump and logging updates
* formatting uses `formatIt` also for object fields
* respect [`NO_COLOR`](https://no-color.org/)
* less memory allocation per log statement
* outputs fully disabled when not used (instead of being formatted and
then discarded)
* directly produce nocolored output instead of coloring then filtering1 parent 15babaa commit a0510ce
File tree
7 files changed
+24
-59
lines changed- beacon_chain
- benchmarks
- vendor
7 files changed
+24
-59
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 44 | + | |
80 | 45 | | |
81 | 46 | | |
82 | 47 | | |
83 | 48 | | |
84 | 49 | | |
85 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
86 | 54 | | |
87 | 55 | | |
88 | 56 | | |
| |||
93 | 61 | | |
94 | 62 | | |
95 | 63 | | |
96 | | - | |
| 64 | + | |
97 | 65 | | |
98 | 66 | | |
99 | 67 | | |
| |||
129 | 97 | | |
130 | 98 | | |
131 | 99 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | 100 | | |
137 | 101 | | |
138 | 102 | | |
| |||
143 | 107 | | |
144 | 108 | | |
145 | 109 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | 110 | | |
150 | 111 | | |
151 | 112 | | |
| |||
171 | 132 | | |
172 | 133 | | |
173 | 134 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
178 | 138 | | |
179 | 139 | | |
| 140 | + | |
180 | 141 | | |
181 | | - | |
| 142 | + | |
| 143 | + | |
182 | 144 | | |
183 | 145 | | |
184 | 146 | | |
| |||
190 | 152 | | |
191 | 153 | | |
192 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
193 | 158 | | |
194 | 159 | | |
195 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
Submodule nim-chronicles updated 91 files
- README.md+125-71
- chronicles.nim+75-101
- chronicles.nimble+5-2
- chronicles/ansicolors.nim+26
- chronicles/dynamic_scope.nim+61-17
- chronicles/dynamic_scope_types.nim+20-4
- chronicles/formats.nim+90
- chronicles/helpers.nim+8-6
- chronicles/json_records.nim+73
- chronicles/log_output.nim+347-580
- chronicles/options.nim+68-42
- chronicles/scope_helpers.nim+1-2
- chronicles/tail_plugins.nim-19
- chronicles/textblocks.nim+168
- chronicles/textformats.nim+125
- chronicles/textlines.nim+176
- chronicles/timestamp.nim+78-13
- chronicles/topics_registry.nim+170-61
- media/json.png
- media/json.svg-1
- media/textblocks.png
- media/textblocks.svg-1
- media/textlines.png
- media/textlines.svg-1
- tests/colors/ansi_colors.test+10-10
- tests/colors/native_colors_unix.test-26
- tests/colors/native_colors_windows.test-25
- tests/colors/no_colors.test+4-4
- tests/custom_formatters_types.nim+3-5
- tests/custom_stream.nim+12-12
- tests/customization/formatters.test+6-6
- tests/dyn_output.nim+24
- tests/lexical_scopes.nim+1-1
- tests/loglevel/info_level.test+11-8
- tests/loglevel/no_level.test+14-11
- tests/loglevel/release_build_level.test+11-8
- tests/loglevel/topic_log_level1.test+9-6
- tests/loglevel/topic_log_level2.test+10-7
- tests/loglevel/topic_log_level3.test+7-4
- tests/loglevel/topic_log_level4.test+8-5
- tests/loglevel/topic_log_level_none.test+6-3
- tests/loglevel/topic_log_level_number.test+10-7
- tests/loglevel/trace_level.test+4-1
- tests/loglevel/warn_level.test+5-3
- tests/logscope/dynamic_scopes.test+4-2
- tests/no_side_effect.nim+1-1
- tests/other/indent.test+6-5
- tests/other/line_numbers.test+13-11
- tests/other/long_lines.test+4-5
- tests/perf/release_opt_size.test+4-3
- tests/perf/size_check_debug.test+503-1.0k
- tests/perf/size_check_release.test+503-1.0k
- tests/rt_filtering/per_sink.test+28
- tests/rt_filtering/rt_two_dyn_output.test+16
- tests/rt_filtering/runtime_filtering.test+31-21
- tests/rt_filtering/runtime_filtering_multi.test+62
- tests/rt_filtering/runtime_filtering_no_scopes.test+6-6
- tests/runtime_filtering.nim+11
- tests/sinks/custom_file_nocolors.test+4-2
- tests/sinks/custom_file_notimestamps.test+4-2
- tests/sinks/double_sink.test+7-7
- tests/sinks/json_file_stdout.test+6-8
- tests/sinks/property_per_sink.test+21-20
- tests/sinks/textblocks_file_stdout.test+5-43
- tests/sinks/textlines_file.test+4-6
- tests/sinks/textlines_file_stdout.test+6-8
- tests/sinks/textlines_stdout.test+4-2
- tests/sinks/tripple_sink.test+9-9
- tests/streams/custom_stream.test+6-5
- tests/streams/file_log_stream.test+2-2
- tests/streams/runtime_path.test+3-2
- tests/streams/streams.test+8-6
- tests/streams/streams_different_formats.test+8-7
- tests/streams/streams_different_formats2.test+5-7
- tests/streams/streams_different_property.test+9-7
- tests/streams/xml_stream_usage.test+2-1
- tests/timestamps/no_timestamps.test+6-8
- tests/timestamps/ownpeg_timestamps.test+6-8
- tests/timestamps/rfc_timestamps.test+7-8
- tests/timestamps/unix_timestamps.test+8-8
- tests/topics/disabled.test+7-5
- tests/topics/enabled.test+11-9
- tests/topics/enabled_vs_disabled.test+5-3
- tests/topics/enabled_vs_required.test+5
- tests/topics/required1.test+8-6
- tests/topics/required2.test+5-3
- tests/topics/required_vs_disabled.test+2
- tests/topics/required_vs_disabled2.test+5-3
- tests/topics_and_loglvls.nim+9-3
- tests/twosinks.nim+27
- tests/xml_stream.nim+1-4
0 commit comments