Skip to content

[log] Add logcat RFC#149

Open
hachikuji wants to merge 1 commit intomainfrom
logcat-rfc
Open

[log] Add logcat RFC#149
hachikuji wants to merge 1 commit intomainfrom
logcat-rfc

Conversation

@hachikuji
Copy link
Contributor

It's useful to have simple cli tool to read from a log.

### CLI Interface

```
logcat --key <KEY> [OPTIONS]
Copy link
Contributor

Choose a reason for hiding this comment

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

honestly I never really liked Kafka's approach to this. I totally agree we need a utility but having a million different tools to interact with Kafka was always a pain.

I much prefer the traditional RDBMS approach where you have one REPL interface that you can use to SELECT/INSERT/DELETE etc... (and configurations etc...). It's a nicer UX.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm fine with that. I agree we don't want a jillion separate utilities.

Copy link
Contributor

Choose a reason for hiding this comment

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

One tool would be better, and perhaps this tool can evolve into that. I can see the case for non-repl mode, if you want to pipe stuff into or out of the tool, etc.

So perhaps we should just make it a more neutral name, something like logcli or something. Then it can add a repl mode and more functions.

Copy link
Contributor Author

@hachikuji hachikuji Feb 4, 2026

Choose a reason for hiding this comment

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

I think something repl-like is good enough for what I need right now. The non-repl stuff is useful too, but could come later.

Copy link
Collaborator

@samsond samsond left a comment

Choose a reason for hiding this comment

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

Looks good overall. I left two small review comments.


## Open Questions

- Should the tool be named `logcat` or `logdbcat` to avoid confusion with Android's logcat?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tiny naming suggestion: odlog might be worth considering here

## Goals

- Read entries from a log by key
- Support tailing/following with configurable poll interval
Copy link
Collaborator

Choose a reason for hiding this comment

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

I noticed the roadmap mentions tail following “without polling,” while this RFC proposes polling with an interval. Are these intended to describe the same capability, with polling as an initial implementation, or is the roadmap pointing to a different future mechanism?

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.

4 participants