Commit dd2def4
feat(nextjs): Improve logs documentation with split-view layout (#15919)
## Summary
Redesigns the Next.js Logs documentation with improved layout and
content:
- **Split-view layout** — Text explanations on left, code examples on
right
- **Inlined integrations** — Console, Pino, Consola, Winston with
split-view
- **Sample payload** — Shows all default attributes in context (replaces
verbose tables)
- **Troubleshooting section** — Common issues: enableLogs config,
dropped logs, filtered data
- **Best practices** — Wide events, business context, consistent naming
## Why Next.js-specific?
Next.js requires `enableLogs: true` in **3 separate config files**
(client, server, edge), unlike most SDKs that have a single init.
## Future work
This split-view layout can be applied to other SDK logs docs. The
pattern established here (setup, usage, integrations, best practices,
troubleshooting) can become the standard template.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.5 <[email protected]>1 parent 76940b2 commit dd2def4
File tree
3 files changed
+523
-0
lines changed- docs/platforms/javascript/guides/nextjs
- logs
- platform-includes/logs/setup
3 files changed
+523
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
0 commit comments