Package apple.oslog

Class OSLogStore

  • All Implemented Interfaces:
    NSObject

    public class OSLogStore
    extends NSObject
    OSLogStore A set of entries from the unified logging system. Instances represent a fixed range of entries and may be backed by a logarchive or the Mac's local store. Entries in OSLogStore objects are used by OSLogEnumerator instances; one store can support multiple OSLogEnumerator instances concurrently. API-Since: 15.0
    • Constructor Detail

      • OSLogStore

        protected OSLogStore​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static OSLogStore allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • entriesEnumeratorAndReturnError

        @Nullable
        public @Nullable OSLogEnumerator entriesEnumeratorAndReturnError​(@Nullable
                                                                         @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        entriesEnumeratorAndReturnError Return an OSLogEnumerator object with default options for viewing the entries; all are viewed, from earliest to latest.
        Parameters:
        error - If the enumerator cannot be set up, return nil and set this to a pointer to an error object that describes the reason. API-Since: 15.0
      • entriesEnumeratorWithOptionsPositionPredicateError

        @Nullable
        public @Nullable OSLogEnumerator entriesEnumeratorWithOptionsPositionPredicateError​(long options,
                                                                                            @Nullable
                                                                                            @Nullable OSLogPosition position,
                                                                                            @Nullable
                                                                                            @Nullable NSPredicate predicate,
                                                                                            @Nullable
                                                                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        entriesEnumeratorWithOptions Return an OSLogEnumerator object based on an underlying store. This object represents the sequence of entries for the store. OSLogStore. Additional parameters control which entries are yielded and their order.
        Parameters:
        options - Control the direction of iteration.
        position - Where to start iteration. If nil, depend on the direction of the iteration: if forwards, start with the earliest entry; if reverse, start with the latest entry.
        predicate - A predicate that filters which entries are in the sequence. If this is nil, yield all entries.
        error - If the enumerator cannot be set up --- for example, the predicate has an unrecognized key --- return nil and set this to a pointer to an error object that describes the reason. API-Since: 15.0
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • positionWithDate

        @NotNull
        public @NotNull OSLogPosition positionWithDate​(@NotNull
                                                       @NotNull NSDate date)
        positionWithDate Return a position representing the time specified. If there are multiple occurences of the same time --- if, for example, there was a time change during the range of entries --- the earliest occurrence is used. API-Since: 15.0
        Parameters:
        date - The date to look for.
      • positionWithTimeIntervalSinceEnd

        @NotNull
        public @NotNull OSLogPosition positionWithTimeIntervalSinceEnd​(double seconds)
        positionWithTimeIntervalSinceEnd Return a position representing an offset since the end of the time range that the entries span.
        Parameters:
        seconds - The seconds to add to the last time point in the range of entries. API-Since: 15.0
      • positionWithTimeIntervalSinceLatestBoot

        @NotNull
        public @NotNull OSLogPosition positionWithTimeIntervalSinceLatestBoot​(double seconds)
        positionWithTimeIntervalSinceLatestBoot Return a position representing time since the last boot in the series of entries. Negative seconds would create an ambiguous or imprecise position; this function asserts that the interval is positive. API-Since: 15.0
        Parameters:
        seconds - The seconds to add to the boot time point in the log time range.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • storeWithScopeError

        public static OSLogStore storeWithScopeError​(long scope,
                                                     @Nullable
                                                     @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        storeWithScope Create an OSLogStore for a subset of entries in the local store.
        Parameters:
        scope - The kind of subset the OSLogStore is for.
        error - If initialization is unsuccessful, return nil and set this parameter to a pointer to an error object that describes the reason. API-Since: 15.0
      • storeWithURLError

        public static OSLogStore storeWithURLError​(@NotNull
                                                   @NotNull NSURL url,
                                                   @Nullable
                                                   @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        storeWithURL Create an OSLogStore based on a logarchive.
        Parameters:
        url - The path identifying a logarchive to be read.
        error - If initialization is unsuccessful --- for example, the path is not to a valid logarchive or the logarchive is not compatible because it is from a newer version --- return nil and set this parameter to a pointer to an error object that describes the reason. API-Since: 15.0
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.