Hi @Newbie Dev ,
Thanks for reaching out to Q&A forum.
You will have to use dependency injection design pattern to inject the iLogger into the other class libraries and register the service in the startup.cs.
Please refer to the below sample code for more details about implementation,
https://gist.github.com/nareshnagpal06/82c6b4df2a987087425c32adb58312c2
I hope this helps! Feel free to reach out to me if you have any further queries or concerns.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.