Change logging backend from swift-log to OSLog #85
Closed
milanvarady
started this conversation in
Ideas
Replies: 3 comments 4 replies
|
Have you tried injecting your own Logger instance to the initializer? |
0 replies
|
Yes I have. But the I get this error: |
3 replies
|
There is a |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@orchetect I have started to implement log collection in MarkerData. What I mean by that is this users will be able to export logs to a
.txtfile at any given time. Now I see thatMarkersExtractor.init()has aloggerparameter. The problem is that it uses theLoggingmodule and not the olderOSLog. The reasonOSLogwould be beneficial is that it has anOSLogStoreobject which has a.getEntries()method which allows me to get and filter log entries very easily.My proposal would be to change MarkerExtractor's logging backend to
OSLog, I think the interface is the same except for initialization. So we would have to changeLogger(label: "\(Object.self)")to something likeLogger(subsystem: "co.theacharya.MarkersExtractor", category: "\(Object.self)")everywhere.All reactions