sweetpad
sweetpad copied to clipboard
OSLog support
I can see usual prints but not OSLogs. How to enable them?
Everything works in Xcode
I fix this with:
if ProcessInfo.processInfo.environment["__XCODE_BUILT_PRODUCTS_DIR_PATHS"] == nil {
// run from `xcrun simctl launch`, print to console
print(msg)
} else {
// run from Xcode, use os.Logger
self.logger.log(level: level, "\(msg, privacy: .public)")
}