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

No way to disable logging to ./logs-... file #70

Closed
omron93 opened this issue Dec 6, 2023 · 2 comments
Closed

No way to disable logging to ./logs-... file #70

omron93 opened this issue Dec 6, 2023 · 2 comments
Assignees

Comments

@omron93
Copy link

omron93 commented Dec 6, 2023

The init_logging() adds logging to a file in current working directory.

But because the sros napalm driver is loaded "dynamically" from napalm library (get_network_driver() function), it's very hard to disable this logging to file and use different logging setup (e.g. to syslog, or even no logging).

Please add possibility to disable this logging file handler and not changing logging module setting.

@jbemmel jbemmel self-assigned this Dec 6, 2023
@jbemmel
Copy link
Collaborator

jbemmel commented Dec 6, 2023

See #71

There was no need to do custom log configuration, let's remove it

@omron93
Copy link
Author

omron93 commented Dec 7, 2023

That's great, exactly what I needed. Thank you @jbemmel

@omron93 omron93 closed this as completed Dec 7, 2023
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

2 participants