vwo_log_messages 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/VwoSdkLogMessages.php +16 -0
- data/src/debug-messages.json +36 -0
- data/src/error-messages.json +40 -0
- data/src/info-messages.json +58 -0
- data/src/warning-messages.json +4 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d81b8ecc23551b618b699e28d3564ef468d9d055d06ecf97834e9dcc3fa98de
|
4
|
+
data.tar.gz: 43751265483c233994d7af8bce1305d1aa168935498ca79a25ed28f19a8a80df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2940a7711d75782c7a9dd0560db594bbe5ee43c4c13295370fe8b397775dd215334b60fa70018e35229d3c339408737a000a3ddab7b0ec3730f0e758888090a8
|
7
|
+
data.tar.gz: 2a12c2ce9253bb2a2086ff1e1a8d96ea8d3f1ee621c9571546d47264ab941d4f68ad340950b8498d7b86812a25a0ad907a1fb6b2db3ec6d375afa4696687b501
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
namespace vwo;
|
4
|
+
|
5
|
+
class VwoSdkLogMessages {
|
6
|
+
|
7
|
+
public static function get()
|
8
|
+
{
|
9
|
+
return [
|
10
|
+
"debugLogs" => json_decode(file_get_contents(__DIR__ . "/debug-messages.json"), true),
|
11
|
+
"infoLogs" => json_decode(file_get_contents(__DIR__ . "/info-messages.json"), true),
|
12
|
+
"errorLogs" => json_decode(file_get_contents(__DIR__ . "/error-messages.json"), true),
|
13
|
+
"warnLogs" => json_decode(file_get_contents(__DIR__ . "/warning-messages.json"), true)
|
14
|
+
];
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"CONFIG_BATCH_EVENT_LIMIT_EXCEEDED": "({file}): Impression event - {endPoint} failed due to exceeding payload size. Parameter eventsPerRequest in batchEvents config in launch API has value:{eventsPerRequest} for account ID:{accountId}. Please read the official documentation for knowing the size limits",
|
3
|
+
"CONFIG_LOG_LEVEL_SET": "({file}): Log level set to {level}",
|
4
|
+
"CONFIG_CUSTOM_LOGGER_USED": "({file}): Custom logger used",
|
5
|
+
"CONFIG_DEVELOPMENT_MODE_STATUS": "({file}): DEVELOPMENT mode is ON. No tracking call will be made to VWO Server",
|
6
|
+
|
7
|
+
"POLLING_SETTINGS_FILE_REGISTERED": "({file}): Polling of settings-file is registered with a periodic interval of {pollingInterval} ms",
|
8
|
+
|
9
|
+
"SETTINGS_FILE_PROCESSED": "({file}): settings-file matches the schema, validated and properly processed for the Account ID:{accountId}",
|
10
|
+
|
11
|
+
"IMPRESSION_FOR_TRACK_USER": "({file}): Impression built for tracking user - {properties}",
|
12
|
+
"IMPRESSION_FOR_TRACK_GOAL": "({file}): Impression built for tracking goal - {properties}",
|
13
|
+
"IMPRESSION_FOR_PUSH": "({file}): Impression built for pushing custom dimension - {properties}",
|
14
|
+
|
15
|
+
"IMPRESSION_FOR_EVENT_ARCH_TRACK_USER": "({file}): Impression built for vwo_variationShown event for Account ID:{accountId}, User ID:{userId}, and Campaign ID:{campaignId}",
|
16
|
+
"IMPRESSION_FOR_EVENT_ARCH_TRACK_GOAL": "({file}): Impression built for {goalName} event for Account ID:{accountId}, User ID:{userId}, and Campaign ID:{campaignId}",
|
17
|
+
"IMPRESSION_FOR_EVENT_ARCH_PUSH": "({file}): Impression built for visitor-property:{property} for Account ID:{accountId} and User ID:{userId}",
|
18
|
+
|
19
|
+
"EVENT_BATCH_BEFORE_FLUSHING": "({file}): flushing event queue {manually} having {length} events for Account ID:{accountId}. {timer}",
|
20
|
+
"EVENT_BATCH_FLUSH": "{{file}}: Manually flushing batch events for Account ID:{accountId} having {queueLength} events",
|
21
|
+
|
22
|
+
"USER_STORAGE_SERVICE_NOT_CONFIGURED": "({file}): User Storage Service is not configured to get/set the data",
|
23
|
+
"USER_STORAGE_SERVICE_NO_STORED_DATA": "({file}): No stored variation for User ID:{userId} for Campaign:{campaignKey} found in User Storage Service",
|
24
|
+
|
25
|
+
"VARIATION_RANGE_ALLOCATION": "({file}): Variation:{variationName} of Campaign:{campaignKey} having weight:{variationWeight} got bucketing range: ( {start} - {end} )",
|
26
|
+
|
27
|
+
"MEG_ELIGIBLE_CAMPAIGNS": "({file}): Campaigns: {eligibleCampaignKeys} are eligible, {inEligibleText} are ineligible from the Group:{groupName} for the User ID:{userId}",
|
28
|
+
|
29
|
+
"SEGMENTATION_SKIPPED": "({file}): Segmentation is not used for Campaign:{campaignKey}, hence skipping evaluating segmentation{variation} for User ID:{userId}",
|
30
|
+
"SEGMENTATION_STATUS": "({file}): User ID:{userId} for Campaign:{campaignKey} with variables:{customVariables} {status} {segmentationType} {variation}",
|
31
|
+
"WHITELISTING_SKIPPED": "({file}): Whitelisting is not used for Campaign:{campaignKey}, hence skipping evaluating whitelisting for User ID:{userId}",
|
32
|
+
|
33
|
+
"USER_UUID": "({file}): VWO UUID generated for Account Id:{accountId} and User ID:{userId} is {uuid}",
|
34
|
+
"USER_HASH_BUCKET_VALUE": "({file}): User ID:{userId} having hash:{hashValue} got bucketValue:{bucketValue}",
|
35
|
+
"USER_CAMPAIGN_BUCKET_VALUES": "({file}): User ID:{userId} for Campaign:{campaignKey} having percent-traffic:{percentTraffic} got hash-value:{hashValue} and bucket-value:{bucketValue}"
|
36
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{
|
2
|
+
"CONFIG_PARAMETER_INVALID": "({file}): {parameter} paased in {api} API is not correct. It should be of type:{type}",
|
3
|
+
"CONFIG_POLLING_SDK_KEY_NOT_PROVIVED": "({file}): SDK Key is required along with pollingInterval to poll the settings-file",
|
4
|
+
"CONFIG_CORRUPTED": "({file}): Config passed to {api} API is invalid. Please refer developer docs",
|
5
|
+
|
6
|
+
"SETTINGS_FILE_INVALID": "({file}): Settings file passed while instantiating SDK instance is invalid",
|
7
|
+
"SETTINGS_FILE_CORRUPTED": "({file}): Fetched settings-file doesn't match the desired schema. Please contact VWO Support for help",
|
8
|
+
|
9
|
+
"BATCH_QUEUE_EMPTY": "{{file}}: No batch queue present for account:{accountId} when calling flushEvents API. Check batchEvents config in launch API",
|
10
|
+
|
11
|
+
"API_HAS_CORRUPTED_SETTINGS_FILE": "({file}): {api} API has corrupted settings-file. Please check or reach out to VWO support",
|
12
|
+
|
13
|
+
"API_BAD_PARAMETERS": "({file}): {api} API got bad parameters. Refer the developer docs",
|
14
|
+
"API_NOT_APPLICABLE": "({file}): {api} API is not valid for Campaign:{campaignKey} having type:{campaignType} for User ID:{userId}",
|
15
|
+
|
16
|
+
"USER_ID_INVALID": "({file}): Invalid User Id:{userId} passed to the API",
|
17
|
+
|
18
|
+
"CAMPAIGN_NOT_FOUND_FOR_GOAL": "({file}): No such campaign found corresponding to goalIdentifier:{goalIdentifier}. Please verify from VWO app",
|
19
|
+
|
20
|
+
"POLLING_FAILED": "({file}): Fetching of settings-file failed via polling for the accountId:{accountId}",
|
21
|
+
|
22
|
+
"SEGMENTATION_REGEX_CREATION_FAILED": "({file}): Regular expression:{regex} used for targeting cound not be evaluated",
|
23
|
+
"SEGMENTATION_ERROR": "({file}): Could not segment the User ID:{userId} for Campaign:{campaignKey}{variation} with customVariables:{customVariables}. Error message: {err}",
|
24
|
+
|
25
|
+
"USER_STORAGE_SERVICE_GET_FAILED": "({file}): Getting data from User Storage Service failed for User ID:{userId}. Error: {error}",
|
26
|
+
"USER_STORAGE_SERVICE_SET_FAILED": "({file}): Saving data into User Storage Service failed for User ID:{userId}. Error: {error}",
|
27
|
+
|
28
|
+
"IMPRESSION_FAILED": "({file}): Impression event could not be sent to VWO - {endPoint}. Reason: {err}",
|
29
|
+
|
30
|
+
"TAG_KEY_LENGTH_EXCEEDED": "({file}): Length of custom dimension key:{tagKey} for User Id:{userId} can not be greater than 255",
|
31
|
+
"TAG_VALUE_LENGTH_EXCEEDED": "({file}): Length of custom dimension value:{tagValue} of tagKey:{tagKey} for User Id:{userId} can not be greater than 255",
|
32
|
+
|
33
|
+
"TRACK_API_GOAL_NOT_FOUND": "({file}): Goal:{goalIdentifier} not found for Campaign:{campaignKey} and User Id:{userId}",
|
34
|
+
"TRACK_API_REVENUE_NOT_PASSED_FOR_REVENUE_GOAL": "({file}): Revenue value should be passed for revenue goal:{goalIdentifier} for Campaign:{campaignKey} and User Id:{userId}",
|
35
|
+
|
36
|
+
"UNABLE_TO_CAST_VALUE": "({file}): Unable to cast value:{variableValue} to type:{variableType}, returning null",
|
37
|
+
"VARIABLE_NOT_FOUND": "({file}): Variable:{variableKey} for User ID:{userId} is not found in settings-file, returning null",
|
38
|
+
"MISSING_IMPORT_SETTINGS_MANDATORY_PARAMS": "AccountId and sdkKey are required for fetching account settings. Aborting!",
|
39
|
+
"ACCOUNT_SETTINGS_NOT_FOUND": "({file}): Request failed for fetching account settings. Got Status Code: ${statusCode} and message: ${message}"
|
40
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
{
|
2
|
+
"CONFIG_VALID": "({file}): SDK configuration and account settings-file are valid",
|
3
|
+
"CONFIG_PARAMETER_USED": "({file}): {parameter} paased in launch API having type:{type}",
|
4
|
+
"CONFIG_RETURN_PROMISE": "({file}): {method} API returns a promise as returnPromiseFor is set to true for this API",
|
5
|
+
|
6
|
+
"SDK_INITIALIZED": "({file}): SDK is properly initialzed with the passed configuration",
|
7
|
+
|
8
|
+
"POLLING_SUCCESS": "({file}): settings-file fetched successfully via polling for the accountId:{accountId}",
|
9
|
+
"POLLING_SETTINGS_FILE_UPDATED": "({file}): SDK instance is updated with the latest settings-file for the accountId:{accountId}",
|
10
|
+
"POLLING_SETTINGS_FILE_NOT_UPDATED": "{file}: settings-file fetched via polling is same as earlier fetched settings",
|
11
|
+
|
12
|
+
"DECISION_NO_VARIATION_ALLOTED": "({file}): Variation was not assigned to the User ID:{userId} for Campaign:{campaignKey}",
|
13
|
+
|
14
|
+
|
15
|
+
"EVENT_BATCH_DEFAULTS": "({file}): {parameter} not passed in SDK configuration, setting it default to {defaultValue}",
|
16
|
+
"EVENT_QUEUE": "({file}): Event with payload:{event} pushed to the {queueType} queue",
|
17
|
+
"EVENT_BATCH_After_FLUSHING": "({file}): Event queue having {length} events has been flushed {manually}",
|
18
|
+
|
19
|
+
"CAMPAIGN_NOT_ACTIVATED": "({file}): Activate the campaign:{campaignKey} first for User ID:{userId} to {reason}",
|
20
|
+
"CAMPAIGN_USER_ALREADY_TRACKED": "({file}): User ID:{userId} for Campaign:{campaignKey} has already been tracked earlier for \"{api}\" API. No tracking call is made to VWO server",
|
21
|
+
"CAMPAIGN_GOAL_ALREADY_TRACKED": "({file}): Goal:{goalIdentifier} of Campaign:{campaignKey} for User ID:{userId} has already been tracked earlier. No tracking call is made to VWO server",
|
22
|
+
|
23
|
+
"GOT_STORED_VARIATION": "({file}): Got stored variation from User Storage Service for User ID:{userId} for Campaign:{campaignKey} as Variation:{variationName}",
|
24
|
+
"GETTING_DATA_USER_STORAGE_SERVICE": "({file}): Read data from User Storage Service for User ID:{userId} and Campaign:{campaignKey}",
|
25
|
+
"SETTING_DATA_USER_STORAGE_SERVICE": "({file}): Set data into User Storage Service for User ID:{userId} and Campaign:{campaignKey}",
|
26
|
+
|
27
|
+
"IMPRESSION_SUCCESS": "({file}): Impression event - {endPoint} was successfully received by VWO having main keys: Account ID:{accountId}, {mainKeys}",
|
28
|
+
"IMPRESSION_SUCCESS_FOR_EVENT_ARCH": "({file}): Impression for {event} - {endPoint} was successfully received by VWO for Account ID:{accountId}",
|
29
|
+
"IMPRESSION_BATCH_SUCCESS": "({file}): Impression event - {endPoint} was successfully received by VWO having Account ID:{accountId}",
|
30
|
+
"IMPRESSION_BATCH_FAILED": "({file}): Batch events couldn\"t be received by VWO. Calling Flush Callback with error and data",
|
31
|
+
|
32
|
+
"MEG_ELIGIBLE_CAMPAIGNS": "({file}): Got {noOfEligibleCampaigns} eligible winners out of {noOfGroupCampaigns} campaigns from the Group:{groupName} and for User ID:{userId}",
|
33
|
+
|
34
|
+
"OTHER_CAMPAIGN_SATISFIES_WHITELISTING_STORAGE": "({file}): Campaign:{campaignKey} of Group:{groupName} satisfies {type} for User ID:{userId}",
|
35
|
+
"SEGMENTATION_STATUS": "({file}): User ID:{userId} for Campaign:{campaignKey} with variables:{customVariables} {status} {segmentationType} {variation}",
|
36
|
+
|
37
|
+
"MEG_CALLED_CAMPAIGN_NOT_WINNER": "({file}): Campaign:{campaignKey} does not qualify from the mutually exclusive group:{groupName} for User ID:{userId}",
|
38
|
+
"MEG_GOT_WINNER_CAMPAIGN": "({file}): Campaign:{campaignKey} is selected from the mutually exclusive group:{groupName} for the User ID:{userId}",
|
39
|
+
|
40
|
+
"FEATURE_STATUS": "({file}): Campaign:{campaignKey} is {status} for user ID:{userId}",
|
41
|
+
|
42
|
+
"FEATURE_VARIABLE_VALUE": "({file}): For User ID:{userId}, value for variable:{variableKey} of feature:{campaignKey} is:{variableValue}",
|
43
|
+
"FEATURE_VARIABLE_DEFAULT_VALUE": "({file}): Feature is not enabled for variation:{variationName}. Returning default value for the variable:{variableKey}",
|
44
|
+
|
45
|
+
"USER_NOT_PART_OF_CAMPAIGN": "({file}): User ID:{userId} did not qualify for Campaign:{campaignKey}",
|
46
|
+
"USER_VARIATION_STATUS": "({file}): User ID:{userId} for Campaign:{campaignKey} {status}",
|
47
|
+
"USER_CAMPAIGN_ELIGIBILITY": "({file}): User ID:{userId} for Campaign:{campaignKey} is {status} to become part of campaign",
|
48
|
+
"USER_VARIATION_ALLOCATION_STATUS": "({file}): User ID:{userId} for Campaign:{campaignKey} {status}",
|
49
|
+
|
50
|
+
"OPT_OUT_API_CALLED": "({file}): You have opted out for not tracking i.e. all API calls will stop functioning and will simply early return",
|
51
|
+
"API_NOT_ENABLED": "({file}): {api} API is disabled as you opted out for tracking. Reinitialize the SDK to enable the normal functioning of all APIs.",
|
52
|
+
|
53
|
+
"INITIATING_ACTIVATE": "({file}): Initiating activation of user {userId} for campaign {campaignKey}.",
|
54
|
+
"INITIATING_GET_VARIATION": "({file}): Initiating getVariation of user '{userId}' for campaign '{campaignKey}'.",
|
55
|
+
"INITIATING_GET_FEATURE_VARIATION": "({file}): Initiating getFeatureVariable for variable key '{variableKey}' of user '{userId}' for campaign '{campaignKey}'.",
|
56
|
+
"INITIATING_IS_FEATURE_ENABLED": "({file}): Initiating isFeatureEnabled of user '{userId}' for campaign '{campaignKey}'.",
|
57
|
+
"INITIATING_PUSH_DIMENSION": "({file}): Initiating push segment of user '{userId}' with tag name `{tagKey}` and tag value '{tagValue}'."
|
58
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
{
|
2
|
+
"CAMPAIGN_NOT_RUNNING": "({file}): {api} API called with Campaign:{campaignKey} but the campaign is not RUNNING. Please verify from VWO App",
|
3
|
+
"CAMPAIGN_NOT_ACTIVATED": "({file}): Campaign:{campaignKey} for User ID:{userId} is not yet activated for API:{api}. Use activate API to activate A/B test or isFeatureEnabled API to activate Feature Test"
|
4
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vwo_log_messages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VWO
|
@@ -18,6 +18,11 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- lib/vwo_log_messages.rb
|
21
|
+
- src/VwoSdkLogMessages.php
|
22
|
+
- src/debug-messages.json
|
23
|
+
- src/error-messages.json
|
24
|
+
- src/info-messages.json
|
25
|
+
- src/warning-messages.json
|
21
26
|
homepage: https://vwo.com/fullstack/server-side-testing/
|
22
27
|
licenses:
|
23
28
|
- Apache-2.0
|
@@ -26,6 +31,7 @@ post_install_message:
|
|
26
31
|
rdoc_options: []
|
27
32
|
require_paths:
|
28
33
|
- lib
|
34
|
+
- src
|
29
35
|
required_ruby_version: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - ">="
|