Posts

Post not yet marked as solved
1 Replies
1.1k Views
I integrated OSLogStore in my app to be able get logs from users when they have an issue. However I faced several issues with the current logic and documentation, that I will mention below. Logs disappear I used the methods in the documentation: let store = try OSLogStore(scope: .currentProcessIdentifier)             let date = Date().addingTimeInterval(-24 * 3600)             let position = store.position(date: date)             entries = try store                 .getEntries(at: position)                 .compactMap { $0 as? OSLogEntryLog }                 .filter { $0.subsystem == Bundle.main.bundleIdentifier! } It returns logs, but if I trigger the method second time after an hour and having an app in background the old logs disappear. Based on the variable position the logs should still be retrieved. In addition there is not mentioned how many entries can be retrieved via getEntries method in documentation. So my question is when the logs are removed and are not available? (in the example I had only few logs generated and it still was not able to retrieve them after an hour, when I triggered the method getEntries ) Is there any buffer limit? Here is my example implementation where you can reproduce the issues mentioned above.. example of integration for iOS
Posted
by Gadireddi.
Last updated
.
Post marked as solved
2 Replies
886 Views
I found out docC is missing search field in hosted documentation, that is currently for example in documentation tool jazzy (https://pspdfkit.com/blog/2016/adding-live-search-to-jazzy/). This is useful feature that should have every documentation. I would consider it as one of the vital feature for every documentation. Could we expect this feature someday ? Thanks for answer.
Posted
by Gadireddi.
Last updated
.