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

CocoaLumberjack support and async notification handling #2

Merged
merged 1 commit into from
Feb 10, 2016

Conversation

rahul-malik
Copy link
Contributor

This change adds support for logging via CocoaLumberjack and moves notification handlers (operationDidStart/operationDidFinish) off the main thread.

#if __has_include(<CocoaLumberjack/DDLog.h>)
#import <CocoaLumberjack/DDLog.h>
// Global log level for the whole library, not per-file.
const int ddLogLevel = LOG_LEVEL_VERBOSE;
Copy link
Owner

Choose a reason for hiding this comment

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

Should this use the DDLogLevel type instead of int?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ddLogLevel seems to be represented as an int in CocoaLumberjack so I believe this is fine.

…ing off

the main thread to avoid JSON parsing on main.
jparise added a commit that referenced this pull request Feb 10, 2016
CocoaLumberjack support and async notification handling
@jparise jparise merged commit 8021808 into jparise:master Feb 10, 2016
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.

2 participants