PSHTML icon indicating copy to clipboard operation
PSHTML copied to clipboard

decouple logger object from the configurationdocument object

Open Stephanevg opened this issue 2 years ago • 0 comments

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.

Stephanevg avatar Mar 06 '23 21:03 Stephanevg