Restructured logging at for PEERP for easier usage
What does this MR do?
After the initial fix for the logging module. Restructured logging to be easier to read and more flexible. Mainly moved file handle initialization to its own method.
Author's checklist
- Follow the Contribution Guidelines.
- Apply the appropriate labels.
Reviewer's checklist
All reviewers can help ensure accuracy, clarity, completeness, and adherence to the Contribution Guidelines.
Reviewer
- Review by a code reviewer or other selected colleague to confirm accuracy, clarity, and completeness. This can be skipped for minor fixes without substantive content changes.
Maintainer
- Review by assigned maintainer, who can always request/require the above reviews.