Skip to content

Conversation

@LordAbhishek
Copy link

@LordAbhishek LordAbhishek commented Nov 16, 2025

Docs change for PR: https://github.com/hashicorp/consul-k8s/pull/4788/

Changes:

Added -capture flag to proxy log command.
This will enable user to capture log for given duration and write them to a file in current working dir.
If -update-level flag is provided along with -capture flag, it will set given new log level, capture the log for given duration and reset the log level to existing one post log capture.
Sample command: consul-k8s proxy log <podname> -capture 1m -update-level debug

@github-actions
Copy link
Contributor

github-actions bot commented Nov 16, 2025

Vercel Previews Deployed

Name Status Preview Updated (UTC)
Dev Portal ✅ Ready (Inspect) Visit Preview Tue Nov 18 09:23:58 UTC 2025
Unified Docs API ✅ Ready (Inspect) Visit Preview Tue Nov 18 09:17:41 UTC 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 16, 2025

Broken Link Checker

No broken links found! 🎉

@LordAbhishek LordAbhishek marked this pull request as ready for review November 17, 2025 05:51
@LordAbhishek LordAbhishek requested review from a team as code owners November 17, 2025 05:51
Copy link
Contributor

@aimeeu aimeeu left a comment

Choose a reason for hiding this comment

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

I left some suggestions so that the text follows the Education style guide. Thanks!

| Flag | Description | Default |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| <nobr>`-namespace`, `-n`</nobr> | `String` Specifies the namespace containing the target Pod. | Current [kubeconfig](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/) namespace. |
| <nobr>`-update-level`, `-u`</nobr> | `String` Specifies the logger (optional) and the level to update. <p>Use the following format to configure the same level for loggers: `-update-level <LEVEL>`.</p> <p>You can also specify a comma-delineated list to configure levels for specific loggers, for example: `-update-level grpc:warning,http:info`.</p> | none |
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
| <nobr>`-update-level`, `-u`</nobr> | `String` Specifies the logger (optional) and the level to update. <p>Use the following format to configure the same level for loggers: `-update-level <LEVEL>`.</p> <p>You can also specify a comma-delineated list to configure levels for specific loggers, for example: `-update-level grpc:warning,http:info`.</p> | none |
| <nobr>`-update-level`, `-u`</nobr> | `String` Specifies the optional logger and the level to update. <p>Use the following format to configure the same level for loggers: `-update-level <LEVEL>`.</p> <p>You can also specify a comma-delimited list to configure levels for specific loggers, such as `-update-level grpc:warning,http:info`.</p> | none |

Copy link
Author

Choose a reason for hiding this comment

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

"Specifies the logger (optional) and the level to update." the statement makes more sense as it try to convey that logger is an optional field but the level to update is mandatory field for update-level flag.. this is what command intends to expect.
So i guess.. this part is fine and keeping as it is.

@LordAbhishek LordAbhishek force-pushed the abhishek/consul-k8s-cli-proxy-docs branch from 19ca0a3 to 1052cd1 Compare November 18, 2025 08:58
@LordAbhishek LordAbhishek requested a review from aimeeu November 18, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants