You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tidies up how tailed logs render in the B2C Logs output panel. Same channel, same start/stop commands — just nicer to read.
Log entries are now color-coded by level (error red, warn yellow, info, debug) and get a built-in level-filter dropdown, by switching the output to a LogOutputChannel.
Multi-line stack traces are indented so each entry reads as one block instead of a wall of text.
Entries from a log whose prefix differs from its level are tagged with their source (e.g. [customerror]), so you can tell which log a line came from. The tag is hidden when it would just repeat the level (no more [error] [error]).
Why
While tailing, it was hard to tell entries apart, to scan for errors at a glance, or to know which log file a line came from. This makes the existing feature readable without changing how you use it.
Notes
No new output channel, command, or panel — purely an improvement to the existing one.
We rely on VS Code's own per-entry timestamp and drop the server's GMT timestamp to avoid a confusing double-timestamp. For live tailing these are seconds apart; for older/rotated entries the shown time reflects when it was polled.
Testing
Typecheck, lint, and build pass for b2c-vs-extension.
Manually verified in the Extension Development Host: levels colored correctly, source tags show only when useful, stack traces grouped, and cartridge paths remain click-to-open.
Files
packages/b2c-vs-extension/src/logs/logs-tail.ts
.changeset/prettier-log-tailing.md
Dependencies
No net-new third-party dependencies were added
If net-new third-party dependencies were added, rationale/discussion is included and 3pl-approved is set by a maintainer
We rely on VS Code's own per-entry timestamp and drop the server's GMT timestamp to avoid a confusing double-timestamp. For live tailing these are seconds apart; for older/rotated entries the shown time reflects when it was polled.
@charithaT07 can we look for another approach here that doesn't drop the server timestamps. That's information we need to be highly accurate
We rely on VS Code's own per-entry timestamp and drop the server's GMT timestamp to avoid a confusing double-timestamp. For live tailing these are seconds apart; for older/rotated entries the shown time reflects when it was polled.
@charithaT07 can we look for another approach here that doesn't drop the server timestamps. That's information we need to be highly accurate
Sure @clavery . Updated to keep the server GMT timestamp as the leading value on each entry .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brief description of what this PR does.
Prettier log viewing in the B2C Logs output
What
Tidies up how tailed logs render in the B2C Logs output panel. Same channel, same start/stop commands — just nicer to read.
LogOutputChannel.[customerror]), so you can tell which log a line came from. The tag is hidden when it would just repeat the level (no more[error] [error]).Why
While tailing, it was hard to tell entries apart, to scan for errors at a glance, or to know which log file a line came from. This makes the existing feature readable without changing how you use it.
Notes
Testing
b2c-vs-extension.Files
packages/b2c-vs-extension/src/logs/logs-tail.ts.changeset/prettier-log-tailing.mdDependencies
3pl-approvedis set by a maintainerpnpm test)pnpm run format)