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

Support customer logger #330

Merged
merged 1 commit into from Mar 15, 2022
Merged

Support customer logger #330

merged 1 commit into from Mar 15, 2022

Conversation

surki
Copy link
Contributor

@surki surki commented Feb 10, 2022

When martian is used as package, it needs to work along with the host's
logging infrastructure. This change adds support for custom logging.

By default, it retains current logging, provides an option to change the logger if needed.

When martian is used as package, it needs to work along with the host's
logging infrastructure. By default, it retains current logging, provides an
option to change it if needed.
@surki
Copy link
Contributor Author

surki commented Feb 10, 2022

FYI, I haven't wrapped the SetLogger in a lock, anticipating it to be used once, from init() or so. But if you think, we should support dynamically changing it, I could wrap it in the same lock.

@surki
Copy link
Contributor Author

surki commented Feb 28, 2022

@bramhaghosh wondering if you had a chance to look this? thanks.

@bramhaghosh bramhaghosh merged commit d6ef5c8 into google:master Mar 15, 2022
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.

None yet

2 participants