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

Fixing bugs in DDFileLogger #183

Merged

Conversation

dvor
Copy link
Member

@dvor dvor commented Nov 30, 2013

Fixes for issues:

UPD
Issue #129 is also fixed. Setting appropriate NSFileProtectionKey when creating log file on iOS.


- (void)rollLogFile;
- (void)rollLogFileWithCompletion:(void (^)())completionBlock;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe rollLogFileWithCompletionBlock: would be better?

Just a small detail, but as it is ugly to change the API later ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, done.

…' in DDFileLogger. 'rollLogFile' method is deprecated now.

Completion block is optional and will be called on main queue.
…If file is moved/removed - rolling it and creating new one.
…ow we are setting appropriate NSFileProtectionKey

(NSFileProtectionCompleteUntilFirstUserAuthentication if app is able launch from background and NSFileProtectionCompleteUnlessOpen in other cases).
rivera-ernesto pushed a commit that referenced this pull request Dec 2, 2013
@rivera-ernesto rivera-ernesto merged commit c334bdf into CocoaLumberjack:master Dec 2, 2013
@dvor dvor deleted the ddfilelogger-fixing-bugs branch December 2, 2013 09:01
@@ -49,6 +49,10 @@ - (void)maybeRollLogFileDueToSize;

@end

#if TARGET_OS_IPHONE
BOOL doesAppRunInBackground(void);

Choose a reason for hiding this comment

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

This should be static: unprefixed extern method is bound to cause a linker error :D

@bpoplauschi bpoplauschi added this to the 1.6.5 milestone Feb 18, 2014
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

4 participants