-
Notifications
You must be signed in to change notification settings - Fork 87
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
Forced root logger and hardcoded logging path #150
Comments
See https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library for guidance on setting up logging for a library. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, im on latest, 7.1.2
Describe the bug
When user just do import of
from pyattck import Attck
it automatically creates a new root logger due tobasicConfig
here https:/swimlane/pyattck/blob/master/pyattck/utils/logger.py#L46.If i create the
./pyattck/data/logging.yml
i can configure that, but would it be possible to move this tomitre = Attck(
as it contains the configuration and initial arguments?To Reproduce
Steps to reproduce the behavior
breakpoint()
inside/usr/lib/python3.10/logging/__init__.py(1945)basicConfig()
or
Expected behavior
In some manner similar to
mitre = Attck(
be able to configure the logging config pathThe text was updated successfully, but these errors were encountered: