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

chore: Allow logging without inheritance #2257

Merged
merged 16 commits into from
Aug 8, 2024

Conversation

sss04
Copy link
Contributor

@sss04 sss04 commented Aug 2, 2024

Related Issues/PRs

#xxx

What changes are proposed in this pull request?

Add log_verb_static - a static function that doesn't depend on the SynapseMLLogger class to log, instead opting to use self.logger in the class it's used in.

Yet to add functionality to log more info.

How is this patch tested?

  • I have written tests (not required for typo or doc fix) and confirmed the proposed feature/bug-fix/change works.

Does this PR change any dependencies?

  • No. You can skip this section.
  • Yes. Make sure the dependencies are resolved correctly, and list changes here.

Does this PR add a new feature? If so, have you added samples on website?

  • No. You can skip this section.
  • Yes. Make sure you have added samples following below steps.
  1. Find the corresponding markdown file for your new feature in website/docs/documentation folder.
    Make sure you choose the correct class estimators/transformers and namespace.
  2. Follow the pattern in markdown file and add another section for your new API, including pyspark, scala (and .NET potentially) samples.
  3. Make sure the DocTable points to correct API link.
  4. Navigate to website folder, and run yarn run start to make sure the website renders correctly.
  5. Don't forget to add <!--pytest-codeblocks:cont--> before each python code blocks to enable auto-tests for python samples.
  6. Make sure the WebsiteSamplesTests job pass in the pipeline.

@sss04 sss04 changed the title Allow logging without inheritance chore: Allow logging without inheritance Aug 2, 2024
mhamilton723
mhamilton723 previously approved these changes Aug 5, 2024
Copy link
Collaborator

@mhamilton723 mhamilton723 left a comment

Choose a reason for hiding this comment

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

Lovely work!

@sss04 sss04 marked this pull request as ready for review August 5, 2024 16:01
@sss04
Copy link
Contributor Author

sss04 commented Aug 5, 2024

/azp run

Copy link

Pull request contains merge conflicts.

@sss04 sss04 enabled auto-merge (squash) August 6, 2024 15:52
@sss04
Copy link
Contributor Author

sss04 commented Aug 7, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.43%. Comparing base (7c23d83) to head (9acaf2e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2257      +/-   ##
==========================================
- Coverage   84.42%   82.43%   -2.00%     
==========================================
  Files         327      327              
  Lines       16775    16775              
  Branches     1499     1499              
==========================================
- Hits        14163    13828     -335     
- Misses       2612     2947     +335     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sss04
Copy link
Contributor Author

sss04 commented Aug 7, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sss04
Copy link
Contributor Author

sss04 commented Aug 8, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mhamilton723
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@TomFinley TomFinley left a comment

Choose a reason for hiding this comment

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

Just a note about not putting the logger instance in the public API.

@sss04
Copy link
Contributor Author

sss04 commented Aug 8, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mhamilton723 mhamilton723 merged commit e3c8784 into microsoft:master Aug 8, 2024
46 of 67 checks passed
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.

4 participants