Consider switching OSLog to Logging #293
Replies: 2 comments 5 replies
-
|
@pfandrade We are open to this and it has been PR'd a couple times when we didn't have a chance to help steer it across the finish line.
Not sure if either is interested in moving things forward now. I think our main goal with such a PR would be for it to:
Because Thoughts on this approach? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for mentioning those PRs. I did not know about them. Your approach sounds fine to me and PR #122 seems like a good place to start. However, when I started the discussion I was thinking more about the SyncEngine itself. The rest of SQLiteData offers fine-grained control over SQL operations, so my logs are more than enough. But the SyncEngine does a lot of stuff behind my back and that's where its logs come in handy. Having said that, I guess that if we're adding Given the sync engine already receives a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
As of writing,
SyncEnginecan be parameterized with a Logger instance from OSLog. While great OSLog doesn't provide much customization such as providing different backends.swift-log however, is a more customizable logging system.
In my particular case, I have logging backends configured with
swift-logthat allow me to log to file, console, etc. And have other features in place that allow, for example, to ask a user for his logs and the app will zip the log files and send them my way.Ideally, I'd like the
SyncEnginelogs to also be written to my current logging infrastructure. But alas, that's not currently possible.So, is switching to the more general
swift-logsomething you would consider? There's anOSLogbackend for it as well.Beta Was this translation helpful? Give feedback.
All reactions