Skip to content
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

Add support to format log streaming of structured JSON output #3408

Merged
merged 7 commits into from
May 26, 2021

Conversation

allxiao
Copy link
Member

@allxiao allxiao commented May 20, 2021


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
    For the newly added code only.
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

@yonzhan
Copy link
Collaborator

yonzhan commented May 20, 2021

spring cloud

@yonzhan yonzhan requested review from Juliehzl and zhoxing-ms May 20, 2021 10:23
@yonzhan yonzhan added this to the S187 milestone May 20, 2021
@yonzhan yonzhan modified the milestones: S187, S188 May 21, 2021

def build_log_shortener(length):
if length <= 0:
raise CLIError('Logger length in `logger{length}` should be positive')
Copy link
Contributor

@zhoxing-ms zhoxing-ms May 25, 2021

Choose a reason for hiding this comment

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

Please use the specific error type from azure.cli.core.azclierror instead of CLIError,such as InvalidArgumentValueError

Copy link
Member Author

Choose a reason for hiding this comment

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

got it, updated.

@Juliehzl Juliehzl merged commit 6357f87 into Azure:master May 26, 2021
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.

5 participants