-
Notifications
You must be signed in to change notification settings - Fork 3
Add build flag to disable line end defines #5
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
base: main
Are you sure you want to change the base?
Add build flag to disable line end defines #5
Conversation
ARDUINOLOG_DISABLE_LINE_END_DEFINES Fixes JSC-TechMinds#2
This overcomes problems if ARDUINOLOG_DISABLE_LINE_END_DEFINES is defined.
|
I don't like that you are redefining one particular flag. Do you think that we could get rid of the defines completely and instead add them into the Logging class? This approach seems more clear to me and shouldn't be complicated to implement. |
|
Alternatively - and I think it's cleaner - just prepend a prefix, similar to how color is defined. |
This was mainly to keep backwards compatibility and prevent breaking existing code using it. I'd like to get rid of lots of the defines and clear some more up but wasn't sure how breaking I could make the changes. I'd also like to add the ability to daisy chain log objects with a module name similar to Python logging. |
|
Take this as a fork which to some degree has open hands to do breaking changes. People can stay on the current release and if we introduce breaking changes, I will mention that in the release notes. |
|
If you prepare a proper PR without defines, I will happily review it. |
The problem with this is the verbosity when used as intended in the examples. E.g. This may have been used before the introduction of the I also hate that the LF macro is actually ASCII CR and CR macro is actually ASCII LF. Not sure how this happened in the first place. |
I'm working on and off this at the moment. Hopefully I'll be able to contribute something in the not too distant future. |
|
That's OK. Besides this change, I have resolved your two other issues. Once this change gets merged, I will publish a new release so that it's easy to use. |
ARDUINOLOG_DISABLE_LINE_END_DEFINES
Fixes #2