Skip to content

Comments

New logging capabilities: output file, and live view#1485

Merged
naps62 merged 10 commits intomainfrom
logs
Nov 5, 2025
Merged

New logging capabilities: output file, and live view#1485
naps62 merged 10 commits intomainfrom
logs

Conversation

@naps62
Copy link
Member

@naps62 naps62 commented Oct 28, 2025

ethui now outputs a file to ~/.config/ethui/logs/<timestamp>log with the live logs with RUST_LOG=ethui=debug.

For every new ethui session, a new file is created.

I also added a new Logging section to the settings where this file can be streamed in real time

image

Copilot AI review requested due to automatic review settings October 28, 2025 16:25
@naps62 naps62 added the A-feature A new finished feature label Oct 28, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive logging capabilities to ethui, including persistent log file storage and a live log viewer UI. Log files are automatically created for each session in ~/.config/ethui/logs/ with timestamped filenames, and users can view and filter logs in real-time through a new Logging section in Settings.

Key changes:

  • New logging UI with live streaming, search filtering, and ANSI color support
  • Buffered file logging that transitions from memory to disk after initialization
  • Relocated Rust log level configuration from General to the new Logging settings page

Reviewed Changes

Copilot reviewed 8 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
gui/src/routes/home/_l/settings/_l/logging.tsx New settings page with live log viewer, ANSI parsing, and filter functionality
gui/src/routes/home/_l/settings/_l/general.tsx Removed Rust log level input (moved to logging page)
gui/src/routes/home/_l/settings/_l.tsx Updated container styling for flexible layout
gui/src/routeTree.gen.ts Generated route definitions for new logging page
gui/src/components/WalletSidebar/index.tsx Added conditional shadow styling
gui/src/components/AppSidebar.tsx Added Logging menu item to settings navigation
crates/tracing/src/lib.rs Implemented file logging with buffering and session management
crates/tracing/Cargo.toml Added chrono dependency for timestamps

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@naps62 naps62 requested a review from joaocosta9 October 29, 2025 13:13
Copy link
Collaborator

@joaocosta9 joaocosta9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not review the code meticulously, but tested on mac and is working as expected!

@naps62 naps62 merged commit 804981c into main Nov 5, 2025
8 checks passed
@naps62 naps62 deleted the logs branch November 5, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-feature A new finished feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants