Skip to content

CLI: dora logs enhancement#1081

Merged
phil-opp merged 8 commits intodora-rs:mainfrom
Mivik:log
Nov 13, 2025
Merged

CLI: dora logs enhancement#1081
phil-opp merged 8 commits intodora-rs:mainfrom
Mivik:log

Conversation

@Mivik
Copy link
Copy Markdown
Contributor

@Mivik Mivik commented Jul 23, 2025

This PR adds two options: -f/--follow and -n/--tail to dora logs. These options behave similarly to their counterparts from docker container logs.

Explanation

The -f/--follow option allows users to stream logs in real-time from the daemon. This provides a continuous, live view, similar to how one might "attach" to the daemon's output.

The -n/--tail option allows users to specify the number of historical log lines to display from the end of the log output. This could limit excessive output from the command.

Other modifications

Prior to this PR, logs were printed using bat. While bat offers a wide range of features such as syntax highlighting and Git integration, only its paging functionality was ever utilized. Furthermore, the paging feature itself seems inconsistent and I can't make it work on my machine. Given these limitations, this PR removes the bat dependency and now simply prints all logs directly to the console, allowing users to leverage their preferred pager for viewing, mirroring Docker's approach.

Copy link
Copy Markdown
Collaborator

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

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

Thanks for this PR, this is definitely useful!

@phil-opp
Copy link
Copy Markdown
Collaborator

Thanks again!

@phil-opp phil-opp enabled auto-merge November 13, 2025 11:16
@phil-opp phil-opp merged commit ba2a0da into dora-rs:main Nov 13, 2025
50 checks passed
@Mivik Mivik deleted the log branch November 17, 2025 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants