Simple Trick for Getting a Logger Instance on Package Level Without Specifying Class
If you want to define a top level logger and access it from functions in the same file, Here's how you can achieve this.
You can use this when you need:
- A static logger without specifying the class name
- Obtaining a logger from the top level
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.