camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

kamel log tail option

Open r-lam opened this issue 3 years ago • 10 comments

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.

r-lam avatar Feb 10 '22 14:02 r-lam

Hey @R-Lam , I would like to take a look at this. Can you assign this to me.

parul5sahoo avatar Mar 28 '22 07:03 parul5sahoo

@parul5sahoo that's great! I've assigned it to you. It'd be a very useful enhancement 👍🏼.

astefanutti avatar Mar 28 '22 08:03 astefanutti

@astefanutti can you share some resources that can help understand the codebase better?

parul5sahoo avatar Mar 31 '22 15:03 parul5sahoo

@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 avatar Mar 31 '22 15:03 squakez

@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 ?

parul5sahoo avatar Apr 16 '22 13:04 parul5sahoo

@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.

squakez avatar Apr 18 '22 07:04 squakez

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!

github-actions[bot] avatar Jul 21 '22 00:07 github-actions[bot]

@parul5sahoo are you still working on this? If not, I will remove the assignment, so that anybody else interested can work on it.

squakez avatar Jul 21 '22 07:07 squakez

Hey @squakez, I haven't got a chance to look at it. Won't be able to work on it currently.

parul5sahoo avatar Jul 21 '22 08:07 parul5sahoo

No problem, thanks for letting me know.

squakez avatar Jul 21 '22 09:07 squakez

The corresponding PR https://github.com/apache/camel-k/pull/3589

essobedo avatar Aug 30 '22 15:08 essobedo