Inherits from NSObject
Declared in PTLogEntry.h

Overview

PTLogEntry class represents an instance of a log message.

Tasks

Other Methods

  •   tag

    Simple tag for the log entry. This tag can be used for filtering purposes and/or to detect progress of a log.

    property
  •   filters

    Filters. This is an array of strings (filters) that can be used for filtering purposes.

    property
  •   timeStamp

    long long A millisecond accurate time stamp value representing the system time associated to the instant when the entry is added to the PTNotificationHistory.

    property
  •   message

    Log message

    property
  •   type

    Type of the message. Types: PTLogEntryTypeInfo, PTLogEntryTypeDebug, PTLogEntryTypeEvent, PTLogEntryTypeWarning PTLogEntryTypeError.

    property
  •   progress

    A float value from [0.0 - 1.0] indicating the progress of a log message of type event (You can log the beggining, progress and end of an event of the same messageId).

    property

Creating message log

Properties

filters

Filters. This is an array of strings (filters) that can be used for filtering purposes.

@property (nonatomic, readonly) NSArray *filters

Discussion

Filters. This is an array of strings (filters) that can be used for filtering purposes.

Declared In

PTLogEntry.h

message

Log message

@property (nonatomic, readonly) NSString *message

Discussion

Log message

Declared In

PTLogEntry.h

progress

A float value from [0.0 - 1.0] indicating the progress of a log message of type event (You can log the beggining, progress and end of an event of the same messageId).

@property (nonatomic, readonly) float progress

Discussion

A float value from [0.0 - 1.0] indicating the progress of a log message of type event (You can log the beggining, progress and end of an event of the same messageId).

Declared In

PTLogEntry.h

tag

Simple tag for the log entry. This tag can be used for filtering purposes and/or to detect progress of a log.

@property (nonatomic, readonly) NSString *tag

Discussion

Simple tag for the log entry. This tag can be used for filtering purposes and/or to detect progress of a log.

Declared In

PTLogEntry.h

timeStamp

long long A millisecond accurate time stamp value representing the system time associated to the instant when the entry is added to the PTNotificationHistory.

@property (nonatomic, readonly) NSDate *timeStamp

Discussion

long long A millisecond accurate time stamp value representing the system time associated to the instant when the entry is added to the PTNotificationHistory.

Declared In

PTLogEntry.h

type

Type of the message. Types: PTLogEntryTypeInfo, PTLogEntryTypeDebug, PTLogEntryTypeEvent, PTLogEntryTypeWarning PTLogEntryTypeError.

@property (nonatomic, readonly) PTLogEntryType type

Discussion

Type of the message. Types: PTLogEntryTypeInfo, PTLogEntryTypeDebug, PTLogEntryTypeEvent, PTLogEntryTypeWarning PTLogEntryTypeError.

Declared In

PTLogEntry.h

Instance Methods

initLogWithTag:filters:message:type:progress:

Creates a new PTLogEntry instance with specified properties.

- (id)initLogWithTag:(NSString *)tag filters:(NSArray *)filters message:(NSString *)message type:(PTLogEntryType)type progress:(float)progress

Parameters

message

The log message

type

The type of the log message

progress

The progress of the event

Discussion

Creates a new PTLogEntry instance with specified properties.

@param tag @param filters

Declared In

PTLogEntry.h

initLogWithTag:message:type:progress:

Creates a new PTLogEntry instance with specified properties.

- (id)initLogWithTag:(NSString *)tag message:(NSString *)message type:(PTLogEntryType)type progress:(float)progress

Parameters

message

The log message

type

The type of the log message

progress

The progress of the event

Discussion

Creates a new PTLogEntry instance with specified properties.

@param tag

Declared In

PTLogEntry.h