TMELogger

@interface TMELogger : NSObject

Abstract logger class.

  • Logs the TBox.

    Declaration

    Objective-C

    - (void)logTBox:(nonnull TMEReasoner *)reasoner;

    Swift

    func logTBox(_ reasoner: TMEReasoner)

    Parameters

    reasoner

    Reasoner instance.

  • Logs the ABox.

    Declaration

    Objective-C

    - (void)logABox:(nonnull TMEReasoner *)reasoner;

    Swift

    func logABox(_ reasoner: TMEReasoner)

    Parameters

    reasoner

    Reasoner instance.

  • Logs the taxonomy computed by the specified reasoner instance.

    Declaration

    Objective-C

    - (void)logTaxonomy:(nonnull TMEReasoner *)reasoner;

    Swift

    func logTaxonomy(_ reasoner: TMEReasoner)

    Parameters

    reasoner

    Reasoner instance.

  • Logs the specified object.

    Declaration

    Objective-C

    - (void)log:(nonnull NSObject *)obj;

    Swift

    func log(_ obj: NSObject)

    Parameters

    obj

    Object to log.

  • Logs the specified object and appends a newline character.

    Declaration

    Objective-C

    - (void)logln:(nonnull NSObject *)obj;

    Swift

    func logln(_ obj: NSObject)

    Parameters

    obj

    Object to log.

Abstract methods

  • Logs the given string.

    Declaration

    Objective-C

    - (void)logString:(nonnull NSString *)string;

    Swift

    func logString(_ string: String)

    Parameters

    string

    String to log.

  • Logs a prompt string followed by a formatted time interval. Useful for logging benchmark results.

    Declaration

    Objective-C

    - (void)logNanos:(unsigned long long)nanos
              prompt:(nonnull NSString *)prompt
            timeUnit:(TMETimeUnit)timeUnit;

    Swift

    func logNanos(_ nanos: UInt64, prompt: String, timeUnit: TMETimeUnit)

    Parameters

    nanos

    Time interval in nanoseconds.

    prompt

    Prompt string.

    timeUnit

    Desired time unit.

  • Clears the logger, removing anything it has logged in the past.

    Declaration

    Objective-C

    - (void)clear;

    Swift

    func clear()