|
35 | 35 |
|
36 | 36 | // ---- info ----
|
37 | 37 | NSString *const OPTLYLoggerMessagesAudienceTargetingFail = @"User %@ does not meet conditions to be in experiment %@.";
|
38 |
| -NSString *const OPTLYLoggerMessagesActivationSuccess = @"Activating user %@ in experiment %@."; |
39 |
| -NSString *const OPTLYLoggerMessagesActivationFailure = @"Not activating user %@ for experiment %@."; |
40 |
| -NSString *const OPTLYLoggerMessagesConversionSuccess = @"Tracking event %@ for user %@."; |
41 | 38 | NSString *const OPTLYLoggerMessagesNoExperimentsForGoal = @"There are no valid experiments for event %@ to track.";
|
42 | 39 | NSString *const OPTLYLoggerMessagesVariationUserAssigned = @"User %@ is in variation %@ of experiment %@.";
|
43 | 40 | NSString *const OPTLYLoggerMessagesForcedVariationUser = @"User %@ is forced in variation %@.";
|
44 |
| -NSString *const OPTLYLoggerMessagesConversionFailAudienceTargeting = @"User %@ does not meet conditions to be in experiment %@."; |
| 41 | +NSString *const OPTLYLoggerMessagesFailAudienceTargeting = @"User %@ does not meet conditions to be in experiment %@."; |
45 | 42 | NSString *const OPTLYLoggerMessagesExperimentNotRunning = @"Experiment %@ is not running.";
|
46 |
| -NSString *const OPTLYLoggerMessagesUserNotTracked = @"Not tracking user if experiment isn’t running or user isn’t in experiment audience"; |
47 |
| - |
48 | 43 | NSString *const OPTLYLoggerMessagesUserMutuallyExcluded = @"User %ld is mutually excluded"; // user id
|
49 |
| -NSString *const OPTLYLoggerMessagesNotTrackedUnknownEvent = @"Not tracking event %@ for user %@. Event is not in datafile."; // event key, userId |
50 |
| -NSString *const OPTLYLoggerMessagesNotTrackedNoParams = @"Not tracking event %@ for user %@. Params not generated."; // event key, userId |
51 |
| -NSString *const OPTLYLoggerMessagesNotTrackedDispatchFailed = @"Not tracking event %@ for user %@. Event dispatch failed."; // event key, userId |
52 | 44 | NSString *const OPTLYLoggerMessagesExperimentIdUnknown = @"Experiment id for %@ is not in the datafile."; // experiment key
|
53 | 45 | NSString *const OPTLYLoggerMessagesEventIdUnknown = @"Event id %@ is not in the datafile."; //event key
|
54 | 46 | NSString *const OPTLYLoggerMessagesNoVariationFoundForExperimentWithLiveVariable = @"Variation not found for user ID: %@ with experiment key: %@ containing live variable: %@.";
|
|
58 | 50 | NSString *const OPTLYLoggerMessagesExperimentKeyInvalid = @"Experiment key is not valid.";
|
59 | 51 | NSString *const OPTLYLoggerMessagesVariationIdInvalid = @"Variation id is not valid.";
|
60 | 52 | NSString *const OPTLYLoggerMessagesBucketerInvalid = @"Bucketer is not valid.";
|
61 |
| -NSString *const OPTLYLoggerMessagesNoImpressionNoParams = @"No impression sent for experiment %@, user %@. Params not generated."; // experiment key, userId |
62 | 53 | NSString *const OPTLYLoggerMessagesExperimentNotPartOfEvent = @"Experiment %@ is not associated with event %@.";
|
63 | 54 | NSString *const OPTLYLoggerMessagesAttributeValueInvalidFormat = @"Provided value for attribute %@ is in an invalid format.";
|
64 | 55 | // project config getters
|
|
70 | 61 | NSString *const OPTLYLoggerMessagesAudienceUnknownForAudienceId = @"Audience not found for audience id: %@."; // audience id
|
71 | 62 | NSString *const OPTLYLoggerMessagesGroupUnknownForGroupId = @"Group not found for group id: %@."; // group id
|
72 | 63 | NSString *const OPTLYLoggerMessagesVariableUnknownForVariableKey = @"Live variable not found for variable key: %@."; // live variable key
|
73 |
| - |
74 | 64 | NSString *const OPTLYLoggerMessagesEventDispatcherInterval = @"Event dispatcher interval set: %ld";
|
75 | 65 |
|
76 | 66 | // ---- Debug ----
|
77 |
| -// Event Dispatcher |
78 |
| -NSString *const OPTLYLoggerMessagesImpressionDispatching = @"Dispatching impression event to URL %@ with params %@."; |
79 |
| -NSString *const OPTLYLoggerMessagesConversionDispatching = @"Dispatching conversion event to URL %@ with params %@."; |
80 |
| -NSString *const OPTLYLoggerMessagesDispatchEventNoOp = @"Called dispatchEvent with URL: %@ and params: %@"; |
81 |
| - |
82 | 67 | NSString *const OPTLYLoggerMessagesBucketAssigned = @"Assigned bucket %@ to user %@.";
|
83 | 68 |
|
| 69 | +// ---- Event Tracking ---- |
| 70 | +// info |
| 71 | +NSString *const OPTLYLoggerMessagesConversionSuccess = @"[EVENT DISPATCH] Tracking event %@ for user %@."; |
| 72 | +NSString *const OPTLYLoggerMessagesActivationSuccess = @"[EVENT DISPATCH] Activating user %@ in experiment %@."; |
| 73 | +// warning |
| 74 | +NSString *const OPTLYLoggerMessagesEventDispatcherInvalidInterval = @"[EVENT DISPATCH] Invalid event handler dispatch interval set: %ld."; |
| 75 | +NSString *const OPTLYLoggerMessagesEventDispatcherInvalidTimeout = @"[EVENT DISPATCH] Invalid event handler dispatch timeout set: %ld."; |
| 76 | +// debug |
| 77 | +NSString *const OPTLYLoggerMessagesDispatchingImpressionEvent = @"[EVENT DISPATCH] Dispatching impression event with params %@."; |
| 78 | +NSString *const OPTLYLoggerMessagesDispatchingConversionEvent = @"[EVENT DISPATCH] Dispatching conversion event with params %@."; |
| 79 | +NSString *const OPTLYLoggerMessagesEventDispatcherProperties = @"[EVENT DISPATCH] Properties set: %ld [interval], %ld [timeout], %ld [max retries]."; |
| 80 | +NSString *const OPTLYLoggerMessagesEventDispatcherNetworkTimerEnabled = @"[EVENT DISPATCH] Network timer enabled with properties: %ld [interval], %ld [timeout], %ld [max retries]."; |
| 81 | +NSString *const OPTLYLoggerMessagesEventDispatcherNetworkTimerDisabled = @"[EVENT DISPATCH] Network timer disabled."; |
| 82 | +NSString *const OPTLYLoggerMessagesEventDispatcherFlushEventsNoEvents = @"[EVENT DISPATCH] No events to send for flushEvents call."; |
| 83 | +NSString *const OPTLYLoggerMessagesEventDispatcherFlushEventsBackoffSkipRetry = @"[EVENT DISPATCH] At dispatch call %ld. Skipping dispatch retry."; |
| 84 | +NSString *const OPTLYLoggerMessagesEventDispatcherEventDispatchFlushSavedEventNoEvents = @"No %@ events to send for flush saved events call."; |
| 85 | +NSString *const OPTLYLoggerMessagesEventDispatcherEventDispatchSuccess = @"[EVENT DISPATCH] %@ event sent with parameters: %@."; |
| 86 | +NSString *const OPTLYLoggerMessagesEventDispatcherFlushEventsBackoffMaxRetries = @"[EVENT DISPATCH] Attempt to dispatch saved events failed. Retries have exceeded max allowed time: %ld."; |
| 87 | +NSString *const OPTLYLoggerMessagesEventDispatcherFlushSavedEventSuccess = @"[EVENT DISPATCH] %@ event successfully sent with parameters: %@. Removing event from storage."; |
| 88 | +NSString *const OPTLYLoggerMessagesEventDispatcherEventDispatchFailed = @"[EVENT DISPATCH] %@ event not sent. Saving event. Parameters: %@. Error received: %@."; |
| 89 | +NSString *const OPTLYLoggerMessagesEventDispatcherFlushSavedEventFailure = @"[EVENT DISPATCH] %@ event not sent and will not be removed from the queue. Parameters: %@."; |
| 90 | +NSString *const OPTLYLoggerMessagesEventDispatcherFlushSavedEventRetrievalFailure = @"[EVENT DISPATCH] Error retrieving saved event data: %@."; |
| 91 | +// error |
| 92 | +NSString *const OPTLYLoggerMessagesEventNotTracked = @"[EVENT DISPATCH] Not tracking event %@ for experiment %@."; // event key, userId |
| 93 | +NSString *const OPTLYLoggerMessagesActivationFailure = @"[EVENT DISPATCH] Not activating user %@ for experiment %@."; |
| 94 | + |
| 95 | + |
| 96 | +// ---- Data Store ---- |
| 97 | +// warning |
| 98 | +NSString *const OPTLYLoggerMessagesDataStoreEventsRemoveAllWarning = @"[DATA STORE] Warning: Removing all events from data store! These events will not be tracked by Optimizely."; |
| 99 | + |
| 100 | +// File Manager |
| 101 | +// debug |
| 102 | +NSString *const OPTLYLoggerMessagesDataStoreFileManagerRemoveAllFilesError = @"[FILE MANAGER] Remove all files error: %@."; |
| 103 | +NSString *const OPTLYLoggerMessagesDataStoreFileManagerRemoveFilesForDataTypeError = @"[FILE MANAGER] Error removing files for data type %ld. Error: %@."; |
| 104 | +NSString *const OPTLYLoggerMessagesDataStoreFileManagerRemoveFileForDataTypeError = @"[FILE MANAGER] Error removing file for data type %ld. File name: %@. Error: %@."; |
| 105 | +NSString *const OPTLYLoggerMessagesDataStoreFileManagerGetFile = @"[FILE MANAGER] Error gettomg file for data type %ld. File name: %@. Error: %@."; |
| 106 | +NSString *const OPTLYLoggerMessagesDataStoreFileManagerSaveFile = @"[FILE MANAGER] Error saving file for data type %ld. File name: %@. Error: %@."; |
| 107 | + |
| 108 | +// Database |
| 109 | +// debug |
| 110 | +NSString *const OPTLYLoggerMessagesDataStoreDatabaseCreateTableError = @"[DATABASE] Error creating table %@. Error: %@."; |
| 111 | +NSString *const OPTLYLoggerMessagesDataStoreDatabaseSaveError = @"[DATABASE] Error saving database. Data: %@, eventType: %ld, cachedData: %u, error: %@."; |
| 112 | +NSString *const OPTLYLoggerMessagesDataStoreDatabaseGetError = @"[DATABASE] Error getting events. Number of events requested: %ld, eventType: %ld, cachedData: %u, error: %@."; |
| 113 | +NSString *const OPTLYLoggerMessagesDataStoreDatabaseGetNumberEvents = @"[DATABASE] Error getting number of events. cachedData: %u, eventType: %ld, error: %@."; |
| 114 | +NSString *const OPTLYLoggerMessagesDataStoreDatabaseRemoveError = @"[DATABASE] Error removing data. Number of events to remove: %ld, eventType: %ld, cachedData: %u, error: %@."; |
| 115 | +// warning |
| 116 | +NSString *const OPTLYLoggerMessagesDataStoreDatabaseGetNoEvents = @"[DATABASE] Get event returned no event. eventType: %ld, cachedData: %u."; |
| 117 | +NSString *const OPTLYLoggerMessagesDataStoreDatabaseSaveTVOSWarning = @"[DATABASE] tvOS can only save to cached data. Data: %@, eventType: %ld."; |
| 118 | +NSString *const OPTLYLoggerMessagesDataStoreDatabaseGetTVOSWarning = @"[DATABASE] tvOS can only get data from cache. Number of events: %ld, eventType: %ld."; |
| 119 | +NSString *const OPTLYLoggerMessagesDataStoreDatabaseGetNumberEventsTVOSWarning = @"[DATABASE] tvOS can only get number of events from cache. eventType: %ld."; |
| 120 | +NSString *const OPTLYLoggerMessagesDataStoreDatabaseRemoveTVOSWarning = @"[DATABASE] tvOS can only remove data from cache> Number of events: %ld, eventType: %ld."; |
| 121 | + |
| 122 | + |
| 123 | + |
84 | 124 | @implementation OPTLYLoggerMessages
|
85 | 125 |
|
86 | 126 | @end
|
0 commit comments