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

Fixed inconsistent styling and added ability to modify level/showLevel after init #11

Merged
merged 2 commits into from May 8, 2019
Merged

Conversation

rowanG077
Copy link

@rowanG077 rowanG077 commented Feb 20, 2019

I have the use case that I want to change the loglevel on the fly when running a program. This pull request adds getters and setters to be able to change the loglevel and showLog after init.

I also noticed that the styling was very inconsistent with different comment styles mixed, function parameters were spaces where placed differently and tabs/spaces where mixed. So I brought it together into a single style.

@joscha
Copy link
Collaborator

joscha commented Feb 20, 2019

@rowanG077 - do you think we can split out the implementation changes from the cosmetic changes, so this gets easier to review?

@joscha
Copy link
Collaborator

joscha commented Feb 20, 2019

//cc @thijse

@rowanG077
Copy link
Author

Yeah I can do that. I made two commits already, one for the styling and one for the added getters/setters. Do you prefer two separate pull requests?

@joscha
Copy link
Collaborator

joscha commented Feb 20, 2019

Do you prefer two separate pull requests?

ah, no, never mind, I missed that - 4f214ac looks good to me, I'll leave the style change decision to @thijse.

@rowanG077
Copy link
Author

rowanG077 commented Feb 20, 2019

Regarding the style changes. I would also like to change the defined LogLevels to an enum class to get more safety on the interface and clearer usage. However this would be an API change and require a version bump. If you guys are OK with this I can implement that as well.

@rowanG077 rowanG077 changed the title WIP: Fixed inconsistent styling and added ability to modify level/showLevel after init Fixed inconsistent styling and added ability to modify level/showLevel after init Feb 24, 2019
@thijse thijse merged commit 49934a5 into thijse:master May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants