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

allow the user to manage "snappi_ixnetwork" logger #589

Open
mtache opened this issue Feb 7, 2025 · 0 comments
Open

allow the user to manage "snappi_ixnetwork" logger #589

mtache opened this issue Feb 7, 2025 · 0 comments

Comments

@mtache
Copy link

mtache commented Feb 7, 2025

Is your feature request related to a use case? Please describe.
Currently, the snappi_ixnetwork.logger.setup_ixnet_logger function configure the snappi_ixnetwork with a StreamHandler and optional FileHandler.
This prevent from using snappi_ixnetwork as a library in a Python application where we want to have control over the logging handlers.

Describe the solution you'd like
Do not modify the snappi_ixnetwork logger if it already has handlers configured. Like this is being done here: https://github.com/OpenIxia/ixnetwork_restpy/blob/master/ixnetwork_restpy/connection.py#L96

Describe alternatives you've considered
For now, I am using a forked snappi_ixnetwork library to build my application.

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

No branches or pull requests

1 participant