-
Notifications
You must be signed in to change notification settings - Fork 514
OSLog macOS xcode13.0 beta1
Manuel de la Pena edited this page Aug 10, 2021
·
3 revisions
#OSLog.framework https://github.com/xamarin/xamarin-macios/pull/12392
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Entry.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Entry.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Entry.h 2021-03-16 13:56:49.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Entry.h 2021-06-02 05:35:45.000000000 -0400
@@ -65,7 +65,7 @@
OSLogEntryStoreCategoryLongTerm14,
OSLogEntryStoreCategoryLongTerm30,
}
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
NS_SWIFT_NAME(OSLogEntry.StoreCategory);
/*!
@@ -74,7 +74,7 @@
* @abstract
* A single entry from the unified logging system.
*/
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
OS_EXPORT
@interface OSLogEntry : NSObject
@@ -84,7 +84,8 @@
* @abstract
* The fully formatted message for the entry.
*/
-@property (nonatomic, readonly) NSString *composedMessage;
+@property (nonatomic, readonly) NSString *composedMessage
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property date
@@ -92,7 +93,8 @@
* @abstract
* The timestamp of the entry.
*/
-@property (nonatomic, readonly) NSDate *date;
+@property (nonatomic, readonly) NSDate *date
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property storeCategory
@@ -100,7 +102,8 @@
* @abstract
* This entry's storage tag. See OSLogEntryStoreCategory.
*/
-@property (nonatomic, readonly) OSLogEntryStoreCategory storeCategory;
+@property (nonatomic, readonly) OSLogEntryStoreCategory storeCategory
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
@end
@@ -112,7 +115,7 @@
* that are generated from a process; they have metadata about
* the originator.
*/
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
OS_EXPORT
@protocol OSLogEntryFromProcess
@@ -122,7 +125,8 @@
* @abstract
* The activity ID associated with the entry.
*/
-@property (nonatomic, readonly) os_activity_id_t activityIdentifier;
+@property (nonatomic, readonly) os_activity_id_t activityIdentifier
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property process
@@ -130,7 +134,8 @@
* @abstract
* The name of the process that made the entry.
*/
-@property (nonatomic, readonly) NSString *process;
+@property (nonatomic, readonly) NSString *process
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property processIdentifier
@@ -138,7 +143,8 @@
* @abstract
* The pid of the process that made the entry.
*/
-@property (nonatomic, readonly) pid_t processIdentifier;
+@property (nonatomic, readonly) pid_t processIdentifier
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property sender
@@ -146,7 +152,8 @@
* @abstract
* The name of the binary image that made the entry.
*/
-@property (nonatomic, readonly) NSString *sender;
+@property (nonatomic, readonly) NSString *sender
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property threadIdentifier
@@ -154,7 +161,8 @@
* @abstract
* The tid of the thread that made the entry.
*/
-@property (nonatomic, readonly) uint64_t threadIdentifier;
+@property (nonatomic, readonly) uint64_t threadIdentifier
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
@end
@@ -165,7 +173,7 @@
* Entry subclasses conforming to this protocol represent
* entries that were made using a handle and a format string.
*/
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
OS_EXPORT
@protocol OSLogEntryWithPayload
@@ -175,7 +183,8 @@
* @abstract
* The category from the os_log_t handle used.
*/
-@property (nonatomic, readonly) NSString *category;
+@property (nonatomic, readonly) NSString *category
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property components
@@ -183,7 +192,8 @@
* @abstract
* An array of the various parts of the composed message.
*/
-@property (nonatomic, readonly) NSArray<OSLogMessageComponent *> *components;
+@property (nonatomic, readonly) NSArray<OSLogMessageComponent *> *components
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property formatString
@@ -191,7 +201,8 @@
* @abstract
* The format string used.
*/
-@property (nonatomic, readonly) NSString *formatString;
+@property (nonatomic, readonly) NSString *formatString
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property subsystem
@@ -199,7 +210,13 @@
* @abstract
* The subsystem of the os_log_t handle used.
*/
-@property (nonatomic, readonly) NSString *subsystem;
+@property (nonatomic, readonly) NSString *subsystem
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
+
+@end
+
+API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
+@interface OSLogEntry () <NSSecureCoding>
@end
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryActivity.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryActivity.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryActivity.h 2021-03-16 09:55:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryActivity.h 2021-06-02 11:07:39.000000000 -0400
@@ -17,7 +17,7 @@
* @abstract
* An entry generated by an activity event.
*/
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
OS_EXPORT
@interface OSLogEntryActivity : OSLogEntry <OSLogEntryFromProcess>
@@ -27,7 +27,8 @@
* @abstract
* This parent activity's activity ID.
*/
-@property (nonatomic, readonly) os_activity_id_t parentActivityIdentifier;
+@property (nonatomic, readonly) os_activity_id_t parentActivityIdentifier
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
@end
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryBoundary.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryBoundary.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryBoundary.h 2021-03-16 09:55:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryBoundary.h 2021-06-02 11:07:39.000000000 -0400
@@ -23,7 +23,7 @@
* The data here are currently informational and carried in the
* composedMessage property.
*/
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
OS_EXPORT
@interface OSLogEntryBoundary : OSLogEntry
@end
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryLog.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryLog.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryLog.h 2021-03-16 09:55:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntryLog.h 2021-06-02 11:07:39.000000000 -0400
@@ -25,7 +25,7 @@
OSLogEntryLogLevelError,
OSLogEntryLogLevelFault,
}
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
NS_SWIFT_NAME(OSLogEntryLog.Level);
/*!
@@ -34,7 +34,7 @@
* @abstract
* Entries made by the os_log API.
*/
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
OS_EXPORT
@interface OSLogEntryLog : OSLogEntry <OSLogEntryFromProcess, OSLogEntryWithPayload>
@@ -44,7 +44,8 @@
* @abstract
* The level of the entry, e.g., info, debug.
*/
-@property (nonatomic, readonly) OSLogEntryLogLevel level;
+@property (nonatomic, readonly) OSLogEntryLogLevel level
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
@end
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntrySignpost.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntrySignpost.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntrySignpost.h 2021-03-16 09:55:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/EntrySignpost.h 2021-06-02 11:07:39.000000000 -0400
@@ -23,7 +23,7 @@
OSLogEntrySignpostTypeIntervalEnd,
OSLogEntrySignpostTypeEvent,
}
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
NS_SWIFT_NAME(OSLogEntrySignpost.SignpostType);
/*!
@@ -32,7 +32,7 @@
* @abstract
* Entries made by the os_signpost API.
*/
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
OS_EXPORT
@interface OSLogEntrySignpost : OSLogEntry <OSLogEntryFromProcess, OSLogEntryWithPayload>
@@ -42,7 +42,8 @@
* @abstract
* The signpost ID associated with this entry.
*/
-@property (nonatomic, readonly) os_signpost_id_t signpostIdentifier;
+@property (nonatomic, readonly) os_signpost_id_t signpostIdentifier
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property signpostName
@@ -50,7 +51,8 @@
* @abstract
* The signpost name associated with this entry.
*/
-@property (nonatomic, readonly) NSString *signpostName;
+@property (nonatomic, readonly) NSString *signpostName
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property signpostType
@@ -58,7 +60,8 @@
* @abstract
* The signpost type associated with this entry.
*/
-@property (nonatomic, readonly) OSLogEntrySignpostType signpostType;
+@property (nonatomic, readonly) OSLogEntrySignpostType signpostType
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
@end
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Enumerator.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Enumerator.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Enumerator.h 2021-03-16 09:55:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Enumerator.h 2021-06-02 11:07:39.000000000 -0400
@@ -26,7 +26,7 @@
typedef NS_OPTIONS(NSUInteger, OSLogEnumeratorOptions) {
OSLogEnumeratorReverse = 0x01,
}
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
NS_SWIFT_NAME(OSLogEnumerator.Options);
/*!
@@ -35,7 +35,7 @@
* @abstract
* An enumerator that views entries in the unified logging system.
*/
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
OS_EXPORT
@interface OSLogEnumerator : NSEnumerator
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/MessageComponent.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/MessageComponent.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/MessageComponent.h 2021-03-16 09:55:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/MessageComponent.h 2021-06-02 12:47:33.000000000 -0400
@@ -28,7 +28,7 @@
OSLogMessageComponentArgumentCategoryString,
OSLogMessageComponentArgumentCategoryUInt64,
}
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
NS_SWIFT_NAME(OSLogMessageComponent.ArgumentCategory);
/*!
@@ -39,9 +39,9 @@
* component for each placeholder in the formatString plus one
* component for any text after the last placeholder.
*/
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
OS_EXPORT
-@interface OSLogMessageComponent : NSObject
+@interface OSLogMessageComponent : NSObject <NSSecureCoding>
/*!
* @property formatSubstring
@@ -51,7 +51,8 @@
* empty string if there is nothing between two placeholders, or
* between the placeholder and the bounds of the string.
*/
-@property (nonatomic, readonly) NSString *formatSubstring;
+@property (nonatomic, readonly) NSString *formatSubstring
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property placeholder
@@ -59,7 +60,8 @@
* @abstract
* The placeholder text. Is empty for is the last component.
*/
-@property (nonatomic, readonly) NSString *placeholder;
+@property (nonatomic, readonly) NSString *placeholder
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property argumentCategory
@@ -68,7 +70,8 @@
* The type of argument corresponding to the placeholder; see
* OSLogMessageComponentArgumentCategory.
*/
-@property (nonatomic, readonly) OSLogMessageComponentArgumentCategory argumentCategory;
+@property (nonatomic, readonly) OSLogMessageComponentArgumentCategory argumentCategory
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property argumentDataValue
@@ -78,7 +81,8 @@
* argument cannot be decoded (for example, it could be
* redacted), or if this is the last component.
*/
-@property (nonatomic, readonly, nullable) NSData *argumentDataValue;
+@property (nonatomic, readonly, nullable) NSData *argumentDataValue
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property argumentDoubleValue
@@ -88,7 +92,8 @@
* value is undefined if the argument cannot be decoded or if this
* is the last component.
*/
-@property (nonatomic, readonly) double argumentDoubleValue;
+@property (nonatomic, readonly) double argumentDoubleValue
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property argumentInt64Value
@@ -97,7 +102,8 @@
* The argument as a 64-bit signed integer; the value is undefined
* if it cannot be decoded or if this is the last component.
*/
-@property (nonatomic, readonly) int64_t argumentInt64Value;
+@property (nonatomic, readonly) int64_t argumentInt64Value
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property argumentNumberValue
@@ -107,7 +113,8 @@
* be decoded (for example, it could be redacted), or if this is
* the last component.
*/
-@property (nonatomic, readonly, nullable) NSNumber *argumentNumberValue;
+@property (nonatomic, readonly, nullable) NSNumber *argumentNumberValue
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property argumentStringValue
@@ -117,7 +124,8 @@
* be decoded (for example, it could be redacted), or if this is
* the last component.
*/
-@property (nonatomic, readonly, nullable) NSString *argumentStringValue;
+@property (nonatomic, readonly, nullable) NSString *argumentStringValue
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
/*!
* @property argumentUInt64Value
@@ -127,7 +135,8 @@
* undefined if the argument cannot be decoded or if this is the
* last component.
*/
-@property (nonatomic, readonly) uint64_t argumentUInt64Value;
+@property (nonatomic, readonly) uint64_t argumentUInt64Value
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
@end
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Position.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Position.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Position.h 2021-03-16 09:55:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Position.h 2021-06-02 11:07:39.000000000 -0400
@@ -22,7 +22,7 @@
* Generate positions with OSLogStore instance methods and use them
* to start viewing entries from a particular starting point.
*/
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
OS_EXPORT
@interface OSLogPosition : NSObject
- (instancetype)init NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Store.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Store.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Store.h 2021-03-16 09:55:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OSLog.framework/Headers/Store.h 2021-06-02 05:38:19.000000000 -0400
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018 Apple Inc. All rights reserved.
+ * Copyright (c) 2018-2019 Apple Inc. All rights reserved.
*/
#ifndef __OSLOG_STORE_H__
@@ -12,6 +12,24 @@
@class OSLogEnumerator;
@class OSLogPosition;
+/*!
+ * @enum OSLogStoreScope
+ *
+ * @abstract
+ * Create a store to a subset of the libtrace entries.
+ *
+ * @constant OSLogStoreSystem
+ * @constant OSLogStoreCurrentProcessIdentifier
+ * "System" scope indicates the entire system; i.e., all logs. Entries can be
+ * retrieved for the current calling process, i.e., matching pid.
+ */
+typedef NS_ENUM(NSInteger, OSLogStoreScope) {
+ OSLogStoreSystem API_AVAILABLE(macos(12.0)) API_UNAVAILABLE(ios, tvos, watchos) = 0,
+ OSLogStoreCurrentProcessIdentifier = 1,
+}
+API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
+NS_SWIFT_NAME(OSLogStore.Scope);
+
NS_ASSUME_NONNULL_BEGIN
/*!
@@ -27,7 +45,7 @@
* instances; one store can support multiple OSLogEnumerator
* instances concurrently.
*/
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
OS_EXPORT
@interface OSLogStore : NSObject
@@ -48,14 +66,30 @@
*
* Gaining access to the local unified logging system requires
* permission from the system. The caller must be run by an admin
- * account and the have the com.apple.logging.local-store
- * entitlement.
+ * account.
*/
+ (nullable instancetype)localStoreAndReturnError:(NSError **)error
API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
NS_SWIFT_NAME(local());
/*!
+ * @method storeWithScope
+ *
+ * @abstract
+ * Create an OSLogStore for a subset of entries in the local store.
+ *
+ * @param scope
+ * The kind of subset the OSLogStore is for.
+ *
+ * @param error
+ * If initialization is unsuccessful, return nil and set this parameter to a
+ * pointer to an error object that describes the reason.
+ */
++ (nullable instancetype)storeWithScope:(OSLogStoreScope)scope
+ error:(NSError **)error
+API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0));
+
+/*!
* @method storeWithURL
*
* @abstract
@@ -72,7 +106,11 @@
*/
+ (nullable instancetype)storeWithURL:(NSURL *)url
error:(NSError **)error
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos);
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0));
+
+- (instancetype)init
+API_DEPRECATED("Use one of the factory methods", macos(10.15, 12.0))
+API_UNAVAILABLE(ios, tvos, watchos);
/*!
* @method entriesEnumeratorWithOptions
@@ -104,7 +142,7 @@
position:(nullable OSLogPosition *)position
predicate:(nullable NSPredicate *)predicate
error:(NSError **)error
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
NS_REFINED_FOR_SWIFT;
/*!
@@ -119,7 +157,7 @@
* to a pointer to an error object that describes the reason.
*/
- (nullable OSLogEnumerator *)entriesEnumeratorAndReturnError:(NSError **)error
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
NS_SWIFT_UNAVAILABLE("Use `entries` method");
/*!
@@ -137,7 +175,7 @@
* --- the earliest occurrence is used.
*/
- (OSLogPosition *)positionWithDate:(NSDate *)date
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
NS_SWIFT_NAME(position(date:));
/*!
@@ -151,7 +189,7 @@
* The seconds to add to the last time point in the range of entries.
*/
- (OSLogPosition *)positionWithTimeIntervalSinceEnd:(NSTimeInterval)seconds
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
NS_SWIFT_NAME(position(timeIntervalSinceEnd:));
/*!
@@ -169,7 +207,7 @@
* this function asserts that the interval is positive.
*/
- (OSLogPosition *)positionWithTimeIntervalSinceLatestBoot:(NSTimeInterval)seconds
-API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, tvos, watchos)
+API_AVAILABLE(macos(10.15), ios(15.0), tvos(15.0), watchos(8.0))
NS_SWIFT_NAME(position(timeIntervalSinceLatestBoot:));
@end
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status