Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Decouple NSKeyArchiver from StoreManager.swift #29

Open
johndpope opened this issue May 11, 2017 · 3 comments
Open

Decouple NSKeyArchiver from StoreManager.swift #29

johndpope opened this issue May 11, 2017 · 3 comments

Comments

@johndpope
Copy link

johndpope commented May 11, 2017

further to investigation
remirobert/Dotzu-Objective-c#4

I drafted this code for your review
https://gist.github.com/johndpope/1dd3663a8712bb1901536a44bccd6a5a

this way - if we can get this into core library,
I can over ride this with any library that conforms to logging protocol,

protocol LogProvider {
func archiveLogs(logs: [T])
func storedDataForKey(key:String)->NSData?
func logs() -> [T]
func reset()
}

@johndpope
Copy link
Author

when my app starts - there's so much rapid logging - it takes dotzu logger some time to catch up.
need to fix this. If I open a PR - will you consider merging?

@johndpope
Copy link
Author

@wwe-johndpope
Copy link

@remirobert - this library is conflicting with another library that is unhooking the following hooks.

-> LoggerCrash.unregister()
this is called - even though - register is never called.
NSSetUncaughtExceptionHandler(nil)
signal(SIGILL, SIG_DFL)
signal(SIGABRT, SIG_DFL)
signal(SIGFPE, SIG_DFL)
signal(SIGBUS, SIG_DFL)
signal(SIGSEGV, SIG_DFL)
signal(SIGSYS, SIG_DFL)
signal(SIGPIPE, SIG_DFL)
signal(SIGTRAP, SIG_DFL)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants