Skip to content
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

Merged
merged 4 commits into from
Apr 8, 2020
Merged

Conversation

jimboca
Copy link
Contributor

@jimboca jimboca commented Apr 7, 2020

Mostly worked right of the box, thanks @firstone Seems like a much cleaner method. Let me know what you all think.

@jimboca jimboca self-assigned this Apr 7, 2020
Copy link
Contributor

@exking exking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

Copy link
Collaborator

@firstone firstone left a 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]
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

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 :)

@jimboca jimboca merged commit 83b4777 into master Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants