camel-k
camel-k copied to clipboard
kamel log tail option
We're currently developing multiple integrations in dev environment so we need to watch logs very often, but the amount of logs retrieve from the container everytime we issue the command has started to annoy some of us.
Will be nice to have a --tail option just like kubectl/oc commands.
Hey @R-Lam , I would like to take a look at this. Can you assign this to me.
@parul5sahoo that's great! I've assigned it to you. It'd be a very useful enhancement 👍🏼.
@astefanutti can you share some resources that can help understand the codebase better?
@astefanutti can you share some resources that can help understand the codebase better?
You can have a look here: https://github.com/apache/camel-k/blob/main/pkg/cmd/log.go#L132 likely we should introduce a --tail option and keep waiting for the incoming log until an interrupt signal (CTRL-C) is sent.
@squakez so I was looking at the codebase, was pondering whether I need to create a new flag like this and try to incorporate that in the usage of log command ?
@squakez so I was looking at the codebase, was pondering whether I need to create a new flag like this and try to incorporate that in the usage of log command ?
Yes, that would be the way to proceed if you need to include a new flag.
This issue has been automatically marked as stale due to 90 days of inactivity. It will be closed if no further activity occurs within 15 days. If you think that’s incorrect or the issue should never stale, please simply write any comment. Thanks for your contributions!
@parul5sahoo are you still working on this? If not, I will remove the assignment, so that anybody else interested can work on it.
Hey @squakez, I haven't got a chance to look at it. Won't be able to work on it currently.
No problem, thanks for letting me know.
The corresponding PR https://github.com/apache/camel-k/pull/3589