Skip to content

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

Merged
Juliehzl merged 7 commits intoAzure:masterfrom
allxiao:menxiao/format-log
May 26, 2021
Merged

Add support to format log streaming of structured JSON output#3408
Juliehzl merged 7 commits intoAzure:masterfrom
allxiao:menxiao/format-log

Conversation

@allxiao
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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