-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UC 32: As a developer, I want to get the logs of the component I'm working on #177
Comments
it would be nice to have it for MVP at least as |
I'll work on this. Do we want both BuildConfig and DeploymentConfig logs (I'm assuming so). |
@cdrage This needs to be broken into smaller well-defined tasks before we start working on it. We can start with DeploymentConfigs logs. We are already showing BuildConfig logs when a build is started. |
@kadel Okay, I'll begin digging through code in order to get the logs from via a library (specifically DeploymentConfig!) |
There are a few stuff that I think is more important than this. We should fix several painful bugs first. |
@kadel Going over how to implement this. First off, we will simply alias to What do you think of this? odo log --help
Show logs of your component.
Usage:
odo log [component_name] [flags]
Examples:
# Get DeploymentConfig and BuildConfig logs for component nodejs (default)
odo log nodejs
# Retrieve all logs
odo log nodejs --all
# Retrieve only pods and buildconfig
odo log pods,bc nodejs
Flags:
--all Retrieve all associated logs
-h, --help help for log
Global Flags:
-v, --verbose Verbose output
Implementing this would be straight-forward, for example: |
odo users shouldn't be exposed to concepts like pods, or buildconfigs. It should be just What does |
@kadel Streaming could be an option too 👍 |
Still a bit confused about what |
@kadel |
technically only pods have logs ;-) But I don't think we need to show build logs, as they are always displayed when user triggers build via |
TBD
The text was updated successfully, but these errors were encountered: