Skip to content

Conversation

samgoodman
Copy link
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Addresses #967 and most of internal b/222347808

@samgoodman samgoodman changed the title Give aiplatform logging its own log namespace, let the user configure their own root logger Fix: Give aiplatform logging its own log namespace, let the user configure their own root logger Mar 15, 2022
@samgoodman samgoodman closed this Mar 29, 2022
@samgoodman samgoodman reopened this Mar 29, 2022
@samgoodman samgoodman requested a review from sasha-gitg March 30, 2022 16:05
Copy link
Member

@sasha-gitg sasha-gitg left a comment

Choose a reason for hiding this comment

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

LGTM with minor comments. Thanks Sam!

@@ -0,0 +1,51 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# Copyright 2020 Google LLC
# Copyright 2022 Google LLC
def __init__(self, name: str = ""):
"""Initializes logger with name.
def __init__(self, name: str):
"""Initializes logger with optional name.
Copy link
Member

Choose a reason for hiding this comment

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

No longer optional.

@samgoodman samgoodman merged commit fb78243 into googleapis:main Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants