Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

decouple logger object from the configurationdocument object #301

Open
Stephanevg opened this issue Mar 6, 2023 · 0 comments
Open

decouple logger object from the configurationdocument object #301

Stephanevg opened this issue Mar 6, 2023 · 0 comments

Comments

@Stephanevg
Copy link
Owner

Currently, the logger object is build using a property that is generated via the configurationdocument object.

Since the configurationdocument class also use write-verbose statement, when they are called during the load of the module, the module actually throws an error saying that the path provided to write-pshtmllog is empty. That is because the configurationDocument is not completley created yet.

IT would be better to decouple the logger object from any setting file, and simply make sure that the logger object runs first when the module gets loaded.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant