The main purpose is removing CocoaLumberjack from all libraries(I'll be making similar PRs to WordPressKit and WordPressAuthenticator later), which will make the SPM support slightly easier and potentially solves some logging set up issues we are having on the app side.
A protocol WordPressLoggingDelegate (similar to tracks' TracksLoggingDelegate) is introduced in this PR. All the DDLogXxx calls are replaced with new WPSharedLog calls which uses the WordPressLoggingDelegate instance to do the actual logging. On the app side, we need to provide a implementation of this logging delegate protocol (like TracksLogger).
[x] I have considered if this change warrants release notes and have added them to the appropriate section in the CHANGELOG.md if necessary.
The main purpose is removing CocoaLumberjack from all libraries(I'll be making similar PRs to WordPressKit and WordPressAuthenticator later), which will make the SPM support slightly easier and potentially solves some logging set up issues we are having on the app side.
A protocol
WordPressLoggingDelegate
(similar to tracks'TracksLoggingDelegate
) is introduced in this PR. All theDDLogXxx
calls are replaced with newWPSharedLog
calls which uses theWordPressLoggingDelegate
instance to do the actual logging. On the app side, we need to provide a implementation of this logging delegate protocol (likeTracksLogger
).CHANGELOG.md
if necessary.