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? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes I have. But the I get this error: |
Beta Was this translation helpful? Give feedback.
3 replies
-
There is a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@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
.txt
file at any given time. Now I see thatMarkersExtractor.init()
has alogger
parameter. The problem is that it uses theLogging
module and not the olderOSLog
. The reasonOSLog
would be beneficial is that it has anOSLogStore
object 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.Beta Was this translation helpful? Give feedback.
All reactions