Skip to content

Feature Request: Add pager support for clog -a #10

Description

@mzhboy

First of all, thank you for building clog. It's a very convenient and useful tool for viewing logs.

Problem

When using:

clog -a xxx.log

to display the entire log file, the output is printed directly to the terminal without pager support. For large log files, it is difficult to read because the output cannot be conveniently scrolled or navigated.

Suggested Improvement

It would be great if clog -a could support a pager, so users can:

  • Scroll through the output interactively.
  • See the current position (e.g. top/bottom indicators or similar navigation hints).
  • Navigate efficiently in large log files.

Even better, it would be very helpful if the pager also supported features similar to less, such as:

  • Keyword searching (/pattern)
  • Filtering or narrowing the displayed logs
  • Potentially more advanced filtering options (for example, SQL-like filtering if that fits the project's design)

Why this would help

When working with large log files, interactive navigation and searching are essential. A built-in pager would make clog a more complete log exploration tool, especially when working with large log files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions