Repository navigation
Commit 16559da
WIP: Refactor logging to use Logger utility - Phase 1 complete
## Completed in This Session
- [x] Enhanced Logger utility with environment-aware defaults
- Production: warn level (clean console)
- Development: debug level (all logs)
- Tests: disabled (better performance)
- Added group(), groupEnd(), time() methods
- [x] Migrated key frontend services to Logger
- browser-sync-service.ts (16 statements)
- app-initialization.ts (5 statements)
- navigation-service.ts (5 statements)
- [x] Migrated schema-plugin-loader.ts (6 statements)
- [x] Updated test expecting console.error (now uses logger)
## Remaining Work
- [ ] Migrate remaining services (shared-node-store, reactive-node-service, etc.)
- [ ] Migrate frontend components (~35 statements)
- [ ] Migrate node type files (~17 statements)
- [ ] Migrate remaining plugins (~3 statements)
- [ ] Standardize Rust backend tracing
## Current State
- Files modified: 7 (logger.ts, 4 services, 1 plugin, 1 test)
- Tests status: All 1569 passing
- Quality checks: Passing (eslint, svelte-check, clippy)
- Remaining console statements in lib: ~204 (down from 328+)
## Context for Next Session
The Logger utility is fully enhanced and working. Key services that were
causing production console noise are migrated. The remaining work is
methodical migration of:
1. Services with internal log() helpers (layout-persistence, tab-persistence, etc.)
2. Console.error/warn calls (appropriate levels, just need Logger consistency)
3. Components and node type files
4. Rust backend println!/eprintln! → tracing
## Acceptance Criteria Status
From issue #363:
- [x] Logger utility enhanced with environment-aware defaults
- [x] Production console clean for migrated services
- [ ] All frontend services use Logger
- [ ] All frontend components use Logger
- [ ] All frontend plugins use Logger
- [ ] Backend library code uses tracing consistently
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 910954a commit 16559da
7 files changed
Lines changed: 186 additions & 104 deletions
File tree
- packages/desktop-app/src
- lib
- plugins
- services
- utils
- tests/services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
168 | | - | |
| 171 | + | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
175 | | - | |
176 | | - | |
177 | | - | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
183 | | - | |
184 | | - | |
185 | | - | |
| 184 | + | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
192 | | - | |
193 | | - | |
194 | | - | |
| 191 | + | |
195 | 192 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 193 | + | |
200 | 194 | | |
201 | 195 | | |
202 | 196 | | |
| |||
218 | 212 | | |
219 | 213 | | |
220 | 214 | | |
221 | | - | |
222 | | - | |
223 | | - | |
| 215 | + | |
224 | 216 | | |
225 | 217 | | |
226 | 218 | | |
227 | 219 | | |
228 | | - | |
| 220 | + | |
229 | 221 | | |
230 | 222 | | |
231 | 223 | | |
| |||
248 | 240 | | |
249 | 241 | | |
250 | 242 | | |
251 | | - | |
| 243 | + | |
252 | 244 | | |
253 | 245 | | |
254 | 246 | | |
| |||
263 | 255 | | |
264 | 256 | | |
265 | 257 | | |
266 | | - | |
267 | | - | |
268 | | - | |
| 258 | + | |
269 | 259 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 260 | + | |
274 | 261 | | |
275 | 262 | | |
276 | 263 | | |
| |||
310 | 297 | | |
311 | 298 | | |
312 | 299 | | |
313 | | - | |
| 300 | + | |
314 | 301 | | |
315 | 302 | | |
316 | 303 | | |
| |||
337 | 324 | | |
338 | 325 | | |
339 | 326 | | |
340 | | - | |
341 | | - | |
| 327 | + | |
| 328 | + | |
342 | 329 | | |
343 | 330 | | |
344 | 331 | | |
| |||
347 | 334 | | |
348 | 335 | | |
349 | 336 | | |
350 | | - | |
| 337 | + | |
351 | 338 | | |
352 | 339 | | |
353 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
54 | | - | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | | - | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
77 | | - | |
| 81 | + | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
| |||
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
107 | | - | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
124 | | - | |
| 128 | + | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
129 | | - | |
| 133 | + | |
130 | 134 | | |
131 | | - | |
| 135 | + | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
135 | | - | |
| 139 | + | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
116 | | - | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
120 | | - | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
140 | | - | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
149 | | - | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
155 | | - | |
| 158 | + | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| |||
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
165 | | - | |
| 168 | + | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
172 | | - | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
| |||
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
184 | | - | |
| 187 | + | |
185 | 188 | | |
186 | 189 | | |
187 | | - | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| |||
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
225 | | - | |
| 228 | + | |
226 | 229 | | |
227 | 230 | | |
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
232 | 235 | | |
233 | | - | |
| 236 | + | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
238 | 241 | | |
239 | | - | |
| 242 | + | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
245 | | - | |
| 248 | + | |
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
250 | | - | |
| 253 | + | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
| |||
262 | 265 | | |
263 | 266 | | |
264 | 267 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 318 | + | |
| 319 | + | |
324 | 320 | | |
325 | 321 | | |
326 | 322 | | |
327 | 323 | | |
328 | 324 | | |
329 | | - | |
330 | | - | |
| 325 | + | |
| 326 | + | |
331 | 327 | | |
332 | 328 | | |
333 | 329 | | |
| |||
356 | 352 | | |
357 | 353 | | |
358 | 354 | | |
359 | | - | |
| 355 | + | |
360 | 356 | | |
361 | 357 | | |
362 | 358 | | |
| |||
0 commit comments