Skip to content

Commit 7f0dab7

Browse files
committed
📝 Add search for main logger config in v5 decoupling guidance
1 parent 91e171b commit 7f0dab7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • .claude/skills/upgrade-browser-sdk-v5

‎.claude/skills/upgrade-browser-sdk-v5/SKILL.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ The `"console error:"` prefix is removed from log messages. Update queries using
265265

266266
Runtime errors, network logs, report logs, and console logs no longer inherit the main logger's context, level, or handler. Use global context and dedicated init parameters instead.
267267

268+
Search for main logger configuration that may have been relying on this inheritance: `grep -rn 'DD_LOGS\.logger\.setLevel\|DD_LOGS\.logger\.setHandler\|DD_LOGS\.logger\.setContext\|DD_LOGS\.logger\.setContextProperty' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte"`. For each match, verify the setting is intentional for the main logger only — it will no longer affect runtime errors, network logs, or console logs.
269+
268270
## Common Mistakes
269271

270272
| Mistake | What goes wrong | Fix |

0 commit comments

Comments
 (0)