-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Commit 1afb1674159d2adc222e488448e6b1738ed5d0e6 broke ddLogLevel handling? #478
Comments
I noticed the same thing here: #473 (comment) For now the fix is to |
Thanks! |
Wow this is a critical bug. The documentation is so out of sync as well. Why upgrade to 2.0.0 before thorough testing? I can't get the latest version on cocoapods. |
I would also put a notice about it in the README. Is is a feature (really). It allows new users to start using the library right away. |
I thought I'm crazy and I can't figure out how to use a well documented super popular logging framework. You should mention this bug in docs. |
It is in the README but feel free to improve on it. |
Where exactly is it in the readme? |
Just follow the link.
|
The read-me is incorrect: the define must be on the command line for now, as the version of Clang included in Xcode 6.3 doesn't allow it to be defined in the source code. This may change in the future, but as it stands, it needs to be on the command line. Sent from my iPad
|
This happened when I made the pull request to use modules. One way to get around this is to turn off modules, but this would break Swift support. Clang 3.7 added support for the Sorry. |
The Dynamic Log Levels documentation is also incomprehensible because of this. |
Most documentation hasn't been updated since 1.9.x. |
…it created more issues than solved.
Adding Has anything changed since the above comments? Is there any documentation for exactly how to set this up correctly? |
@shawnmorrison hi, It seems like it got fixed in #539. You don't have to define it yourself anymore. Maybe you get duplicates because you define and assign ddLogLevel in a header and include it in multiple source files? I made some macros helpers for myself, you can examine my approuch to get the idea of how to use Cocoa Lumberjack properly. (I hope I don't miss anything myself) The key is to set ddLogLevel in a source file, not in a header. (You can set it in header file, of course, but you won't be able to change it individually for each file) |
… #ifdef ddLogLevel was a bad idea and it created more issues than solved." This reverts commit 932a65e.
1afb167
How would '#ifdef ddLogLevel' ever be true at compile time if I use a variable?
Either I'm missing something or this keeps ddLogLevel from ever being used in that case.
The text was updated successfully, but these errors were encountered: