Add markdown log writer for GitHub workflow preview#149
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add second log file writer for GitHub flavored markdown
Add markdown log writer for GitHub workflow preview
Jan 11, 2026
Collaborator
|
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Done in fd677df. Removed timestamps and log level labels ([INFO], [WARN], [ERROR], [DEBUG]) from markdown output - emojis now provide all the visual hierarchy needed. Before: - ✓ `14:13:42` **startup** [INFO] MCPG Gateway version: dev
- ✗ `14:14:10` **backend** [ERROR] MCP backend connection failed...After: - ✓ **startup** MCPG Gateway version: dev
- ✗ **backend** MCP backend connection failed...The output is now cleaner and more concise while maintaining clear visual indicators with emojis (✓ ✗ |
Collaborator
|
@copilot lint go |
Contributor
Author
✅ All Go linting checks pass:
No code changes needed. |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds a second log file (
gateway.md) formatted as GitHub-flavored markdown for workflow run previews. Logs important diagnostic events with visual indicators and automatic secret redaction.Implementation
New markdown logger (
internal/logger/markdown_logger.go)<details>HTML elementIntegrated at critical log points
Output Format
MCP backend connection failed, command=docker, args=[run --rm -e TOKEN=[REDACTED] -i image]
File written to
{log-dir}/gateway.mdalongside existingmcp-gateway.log.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.