PTLogFactory Class Reference
| 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
-
+ isEnabledReturns YES if there is at least 1 Logger registered for logs.
-
– addLogger:Inserts the PTLogger to the registered loggers.
-
– removeLogger:Removes the PTLogger from the registered loggers.
-
– removeAllLoggersInserts the notification to the PTNotificationHistory. If PTNotificationHistory current size is greater than its current capacity older notifications will be removed from the list.
-
– logMessage:Sends the logMessage to all the loggers added to the PTLogFactory
Extension Methods
-
– 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).
Instance Methods
addLogger:
Inserts the PTLogger to the registered loggers.
- (void)addLogger:(id<PTLogger>)loggerDiscussion
Inserts the PTLogger to the registered loggers.
Declared In
PTLogFactory.hlogMessage:
Sends the logMessage to all the loggers added to the PTLogFactory
- (void)logMessage:(PTLogEntry *)messageDiscussion
Sends the logMessage to all the loggers added to the PTLogFactory
Declared In
PTLogFactory.hlogMessageWithType: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.hremoveAllLoggers
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)removeAllLoggersDiscussion
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