-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change logger based on suggestions from @firstone #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except 1 question
|
||
class PolyLogger: | ||
|
||
NAME = __name__.split(".")[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about purpose of this. I believe name here will resolve to "polylogger", that is, module name, rather than the name of executable that invoked. Was that the intent? If so, there's no need for split.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, name is polyinterface.polylogger so I just wanted polyinterface which was what you get when it's inside init like I had before. I could leave it hardcoded like you had it, but this works as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine. Just slightly confusing :)
Mostly worked right of the box, thanks @firstone Seems like a much cleaner method. Let me know what you all think.