Skip to content

Commit fff21e0

Browse files
authored
refactor: Integrate logging package (#755)
## Summary - Integrate logging package in `optimizely-sdk` package. ## Test plan - All unit tests and Full stack compatibility suite tests pass. ## Jira [OASIS-8204](https://optimizely.atlassian.net/browse/OASIS-8204)
1 parent 71fcef4 commit fff21e0

File tree

34 files changed

+898
-60
lines changed

34 files changed

+898
-60
lines changed

packages/optimizely-sdk/lib/core/audience_evaluator/index.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*/
1616
import sinon from 'sinon';
1717
import { assert } from 'chai';
18-
import { getLogger } from '@optimizely/js-sdk-logging';
1918
import { sprintf } from '../../utils/fns';
19+
import { getLogger } from '../../modules/logging';
2020

2121
import { createAudienceEvaluator } from './index';
2222
import * as conditionTreeEvaluator from '../condition_tree_evaluator';

packages/optimizely-sdk/lib/core/audience_evaluator/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2016, 2018-2021, Optimizely
2+
* Copyright 2016, 2018-2022, Optimizely
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { getLogger } from '@optimizely/js-sdk-logging';
16+
import { getLogger } from '../../modules/logging';
1717

1818
import fns from '../../utils/fns';
1919
import {

packages/optimizely-sdk/lib/core/bucketer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
import { sprintf } from '../../utils/fns';
2121
import murmurhash from 'murmurhash';
22-
import { LogHandler } from '@optimizely/js-sdk-logging';
22+
import { LogHandler } from '../../modules/logging';
2323
import {
2424
DecisionResponse,
2525
BucketerParams,

packages/optimizely-sdk/lib/core/custom_attribute_condition_evaluator/index.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
LOG_LEVEL,
2222
LOG_MESSAGES,
2323
} from '../../utils/enums';
24-
import * as logging from '@optimizely/js-sdk-logging';
24+
import * as logging from '../../modules/logging';
2525
import * as customAttributeEvaluator from './';
2626

2727
var browserConditionSafari = {

packages/optimizely-sdk/lib/core/custom_attribute_condition_evaluator/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* Copyright 2018-2019, 2020 Optimizely, Inc. and contributors *
2+
* Copyright 2018-2019, 2020, 2022, Optimizely, Inc. and contributors *
33
* *
44
* Licensed under the Apache License, Version 2.0 (the "License"); *
55
* you may not use this file except in compliance with the License. *
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and *
1414
* limitations under the License. *
1515
***************************************************************************/
16-
import { getLogger } from '@optimizely/js-sdk-logging';
16+
import { getLogger } from '../../modules/logging';
1717
import { UserAttributes, Condition } from '../../shared_types';
1818

1919
import fns from '../../utils/fns';

packages/optimizely-sdk/lib/core/decision_service/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and *
1414
* limitations under the License. *
1515
***************************************************************************/
16-
import { LogHandler } from '@optimizely/js-sdk-logging';
16+
import { LogHandler } from '../../modules/logging';
1717
import { sprintf } from '../../utils/fns';
1818

1919
import fns from '../../utils/fns';

packages/optimizely-sdk/lib/core/event_builder/event_helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019-2021, Optimizely
2+
* Copyright 2019-2022, Optimizely
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { getLogger } from '@optimizely/js-sdk-logging';
16+
import { getLogger } from '../../modules/logging';
1717

1818
import fns from '../../utils/fns';
1919
import * as eventTagUtils from '../../utils/event_tag_utils';

packages/optimizely-sdk/lib/core/event_builder/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2016-2021, Optimizely
2+
* Copyright 2016-2022, Optimizely
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { LoggerFacade } from '@optimizely/js-sdk-logging';
16+
import { LoggerFacade } from '../../modules/logging';
1717
import { EventV1 as CommonEventParams } from '@optimizely/js-sdk-event-processor';
1818

1919
import fns from '../../utils/fns';

packages/optimizely-sdk/lib/core/notification_center/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { LogHandler, ErrorHandler } from '@optimizely/js-sdk-logging';
16+
import { LogHandler, ErrorHandler } from '../../modules/logging';
1717
import { objectValues } from '../../utils/fns';
1818
import { NotificationListener, ListenerPayload } from '../../shared_types';
1919

packages/optimizely-sdk/lib/core/project_config/index.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import sinon from 'sinon';
1717
import { assert } from 'chai';
1818
import { forEach, cloneDeep } from 'lodash';
19-
import { getLogger } from '@optimizely/js-sdk-logging';
2019
import { sprintf } from '../../utils/fns';
20+
import { getLogger } from '../../modules/logging';
2121

2222
import fns from '../../utils/fns';
2323
import projectConfig from './';

0 commit comments

Comments
 (0)