Inherits from NSObject
Declared in PTLogFactory.h

Overview

PTLogFactory class.

The functionality of the PTLogFactory class it to provide access to log messages provided by the PSDK. Each log message of registered by the PTLogFactory class is represented by an instance of PTLogEntry.

PTLog : Add/Remove Loggers Use the following macros for convinient usage of adding and removing loggers

Tasks

Other Methods

Extension Methods

Class Methods

isEnabled

Returns YES if there is at least 1 Logger registered for logs.

+ (BOOL)isEnabled

Discussion

Returns YES if there is at least 1 Logger registered for logs.

Declared In

PTLogFactory.h

Instance Methods

addLogger:

Inserts the PTLogger to the registered loggers.

- (void)addLogger:(id<PTLogger>)logger

Discussion

Inserts the PTLogger to the registered loggers.

Declared In

PTLogFactory.h

logMessage:

Sends the logMessage to all the loggers added to the PTLogFactory

- (void)logMessage:(PTLogEntry *)message

Discussion

Sends the logMessage to all the loggers added to the PTLogFactory

Declared In

PTLogFactory.h

logMessageWithType:progress:file:lineNumber:format:

Helper functions to create and send a log message of different types. (Use macros defined in PTLog.h for easier use).

- (void)logMessageWithType:(PTLogEntryType)type progress:(float)progress file:(char *)sourceFile lineNumber:(int)lineNumber format:(NSString *)format, ...

Discussion

Helper functions to create and send a log message of different types. (Use macros defined in PTLog.h for easier use).

Declared In

PTLog.h

removeAllLoggers

Inserts the notification to the PTNotificationHistory. If PTNotificationHistory current size is greater than its current capacity older notifications will be removed from the list.

- (void)removeAllLoggers

Discussion

Inserts the notification to the PTNotificationHistory. If PTNotificationHistory current size is greater than its current capacity older notifications will be removed from the list.

Declared In

PTLogFactory.h

removeLogger:

Removes the PTLogger from the registered loggers.

- (void)removeLogger:(id<PTLogger>)logger

Discussion

Removes the PTLogger from the registered loggers.

Declared In

PTLogFactory.h