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

Default ddLogLevel set to DDLogLevelVerbose #473

Merged
merged 1 commit into from
Mar 10, 2015

Conversation

bpoplauschi
Copy link
Member

To avoid

Requiring apps to create an arbitrary named variable just to start using CocoaLumberjack is clumsy.

we can define the global log level to Verbose unless it's already defined.

…o start using CocoaLumberjack is clumsy.", we can define the global log level to Verbose unless it's already defined.
@bpoplauschi bpoplauschi added this to the 2.0.0 milestone Mar 9, 2015
@bpoplauschi bpoplauschi mentioned this pull request Mar 9, 2015
@rivera-ernesto
Copy link
Member

Good idea!

rivera-ernesto added a commit that referenced this pull request Mar 10, 2015
…o_verbose

Default ddLogLevel set to DDLogLevelVerbose
@rivera-ernesto rivera-ernesto merged commit 1afb167 into master Mar 10, 2015
@rivera-ernesto rivera-ernesto deleted the default_ddLogLevel_set_to_verbose branch March 10, 2015 12:22
@vercruesse
Copy link

For Swift the global log level ist still set to .Warning instead of .Verbose

public var defaultDebugLevel = DDLogLevel.Warning

public func resetDefaultDebugLevel() {
    defaultDebugLevel = DDLogLevel.Warning
}

@bpoplauschi
Copy link
Member Author

Should we set it to Verbose, to make it consistent with the Objective-C default one?

@rivera-ernesto
Copy link
Member

I think so.

@@ -24,7 +24,11 @@
* The constant/variable/method responsible for controlling the current log level.
**/
#ifndef LOG_LEVEL_DEF
#define LOG_LEVEL_DEF ddLogLevel
#ifdef ddLogLevel
Copy link
Member

Choose a reason for hiding this comment

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

Also noticed that this check never works as usually ddLogLevel is defined as a variable instead of a preprocessor #define.

bpoplauschi added a commit that referenced this pull request Jun 24, 2015
bpoplauschi added a commit that referenced this pull request Jun 24, 2015
ospr added a commit to ospr/CocoaLumberjack that referenced this pull request Mar 9, 2016
… #ifdef ddLogLevel was a bad idea and it created more issues than solved."

This reverts commit 932a65e.
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.

None yet

3 participants