diff --git a/src/channel/beaconSocketChannel.ts b/src/channel/beaconSocketChannel.ts index d9b94403..f40ced45 100644 --- a/src/channel/beaconSocketChannel.ts +++ b/src/channel/beaconSocketChannel.ts @@ -1,6 +1,6 @@ import {ChannelListener, DuplexChannel} from './index'; import {Envelope} from './guaranteedChannel'; -import Logger, {LoggerFactory} from '../logging'; +import {Logger, LoggerFactory} from '../logging'; import NullLogger from '../logging/nullLogger'; import {formatCause} from '../error'; diff --git a/src/channel/guaranteedChannel.ts b/src/channel/guaranteedChannel.ts index a17e1168..4ee1fb72 100644 --- a/src/channel/guaranteedChannel.ts +++ b/src/channel/guaranteedChannel.ts @@ -1,4 +1,4 @@ -import Logger from '../logging'; +import {Logger} from '../logging'; import {DuplexChannel, OutputChannel} from './index'; import NullLogger from '../logging/nullLogger'; diff --git a/src/channel/queuedChannel.ts b/src/channel/queuedChannel.ts index b23cc713..d630cdcd 100644 --- a/src/channel/queuedChannel.ts +++ b/src/channel/queuedChannel.ts @@ -1,6 +1,6 @@ import {OutputChannel} from './index'; import {Queue} from '../queue'; -import Logger from '../logging'; +import {Logger} from '../logging'; import NullLogger from '../logging/nullLogger'; export default class QueuedChannel implements OutputChannel { diff --git a/src/channel/retryChannel.ts b/src/channel/retryChannel.ts index 23f53cd8..54664097 100644 --- a/src/channel/retryChannel.ts +++ b/src/channel/retryChannel.ts @@ -1,5 +1,5 @@ import {OutputChannel} from './index'; -import Logger from '../logging'; +import {Logger} from '../logging'; import {RetryPolicy} from '../retry'; import NullLogger from '../logging/nullLogger'; diff --git a/src/channel/socketChannel.ts b/src/channel/socketChannel.ts index 4038e168..a43b2da4 100644 --- a/src/channel/socketChannel.ts +++ b/src/channel/socketChannel.ts @@ -1,4 +1,4 @@ -import Logger from '../logging'; +import {Logger} from '../logging'; import {ChannelListener, DuplexChannel} from './index'; import {formatCause} from '../error'; import NullLogger from '../logging/nullLogger'; diff --git a/src/container.ts b/src/container.ts index 641885e7..79e417b8 100644 --- a/src/container.ts +++ b/src/container.ts @@ -1,4 +1,4 @@ -import Logger from './logging'; +import {Logger} from './logging'; import Context, {TokenScope} from './context'; import ConsoleLogger from './logging/consoleLogger'; import NullLogger from './logging/nullLogger'; diff --git a/src/facade/sdkFacade.ts b/src/facade/sdkFacade.ts index 8b6c2335..2f4faa54 100644 --- a/src/facade/sdkFacade.ts +++ b/src/facade/sdkFacade.ts @@ -8,7 +8,7 @@ import {formatCause} from '../error'; import {configurationSchema} from '../schema/sdkFacadeSchemas'; import Sdk from '../sdk'; import SessionFacade from './sessionFacade'; -import Logger from '../logging'; +import {Logger} from '../logging'; import {ExternalEvent, ExternalEventPayload, ExternalEventType} from '../event'; export type Configuration = { diff --git a/src/logging/consoleLogger.ts b/src/logging/consoleLogger.ts index 1f4febe5..4eebfc0b 100644 --- a/src/logging/consoleLogger.ts +++ b/src/logging/consoleLogger.ts @@ -1,4 +1,4 @@ -import Logger from './index'; +import {Logger} from './index'; type ConsoleMethod = { (message?: any, ...optionalParams: any[]): void, diff --git a/src/logging/index.ts b/src/logging/index.ts index 459134b9..898dfd6e 100644 --- a/src/logging/index.ts +++ b/src/logging/index.ts @@ -1,4 +1,4 @@ -export default interface Logger { +export interface Logger { debug(message: string): void; info(message: string): void; diff --git a/src/logging/namespacedLogger.ts b/src/logging/namespacedLogger.ts index bd9cb35d..19288738 100644 --- a/src/logging/namespacedLogger.ts +++ b/src/logging/namespacedLogger.ts @@ -1,4 +1,4 @@ -import Logger from './index'; +import {Logger} from './index'; export default class NamespacedLogger implements Logger { private readonly logger: Logger; diff --git a/src/logging/nullLogger.ts b/src/logging/nullLogger.ts index f093539c..4253bf56 100644 --- a/src/logging/nullLogger.ts +++ b/src/logging/nullLogger.ts @@ -1,4 +1,4 @@ -import Logger from './index'; +import {Logger} from './index'; export default class NullLogger implements Logger { public debug(): void { diff --git a/src/queue/monitoredQueue.ts b/src/queue/monitoredQueue.ts index 24f4994b..0463fa8e 100644 --- a/src/queue/monitoredQueue.ts +++ b/src/queue/monitoredQueue.ts @@ -1,5 +1,5 @@ import {Queue} from './index'; -import Logger from '../logging'; +import {Logger} from '../logging'; import NullLogger from '../logging/nullLogger'; export type Status = 'halfEmpty' | 'almostEmpty' | 'empty' | 'halfFull' | 'almostFull' | 'full'; diff --git a/src/sdk.ts b/src/sdk.ts index 56c4c1ac..0f6c864e 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -1,6 +1,6 @@ import {Container} from './container'; import Context, {TokenScope} from './context'; -import Logger from './logging'; +import {Logger} from './logging'; import {BOOTSTRAP_ENDPOINT_URL, EVALUATION_ENDPOINT_URL, TRACKER_ENDPOINT_URL, VERSION} from './constants'; import {configurationSchema} from './schema/sdkSchemas'; import {formatCause} from './error'; diff --git a/src/tracker.ts b/src/tracker.ts index f0ef458d..1bcc89df 100644 --- a/src/tracker.ts +++ b/src/tracker.ts @@ -1,4 +1,4 @@ -import Logger from './logging'; +import {Logger} from './logging'; import Context from './context'; import Tab, {TabEvent, TabUrlChangeEvent, TabVisibilityChangeEvent} from './tab'; import {OutputChannel} from './channel'; diff --git a/test/channel/socketChannel.test.ts b/test/channel/socketChannel.test.ts index 9858cc7b..1b2bb7cc 100644 --- a/test/channel/socketChannel.test.ts +++ b/test/channel/socketChannel.test.ts @@ -1,6 +1,6 @@ import WS from 'jest-websocket-mock'; import {SocketChannel} from '../../src/channel/socketChannel'; -import Logger from '../../src/logging'; +import {Logger} from '../../src/logging'; describe('A socket channel', () => { const url = 'ws://localhost:8080'; diff --git a/test/container.test.ts b/test/container.test.ts index 3d43a09c..dcb9fbc0 100644 --- a/test/container.test.ts +++ b/test/container.test.ts @@ -2,7 +2,7 @@ import WS from 'jest-websocket-mock'; import * as fetchMock from 'fetch-mock'; import {Configuration, Container} from '../src/container'; import NullLogger from '../src/logging/nullLogger'; -import Logger from '../src/logging'; +import {Logger} from '../src/logging'; import {BeaconPayload} from '../src/event'; afterEach(() => { diff --git a/test/logging/namespacedLogger.test.ts b/test/logging/namespacedLogger.test.ts index f1f55093..057d23db 100644 --- a/test/logging/namespacedLogger.test.ts +++ b/test/logging/namespacedLogger.test.ts @@ -1,5 +1,5 @@ import NamespacedLogger from '../../src/logging/namespacedLogger'; -import Logger from '../../src/logging'; +import {Logger} from '../../src/logging'; describe('A namespaced logger', () => { let innerLogger: Logger; diff --git a/test/sdk.test.ts b/test/sdk.test.ts index f9aab11f..3ea819d7 100644 --- a/test/sdk.test.ts +++ b/test/sdk.test.ts @@ -4,7 +4,7 @@ import Sdk, {Configuration} from '../src/sdk'; import NullLogger from '../src/logging/nullLogger'; import Token from '../src/token'; import TabEventEmulator from './utils/tabEventEmulator'; -import Logger from '../src/logging'; +import {Logger} from '../src/logging'; import {BeaconPayload, NothingChanged} from '../src/event'; import {VERSION} from '../src/constants';