Skip to content

Commit

Permalink
Fix logging index export
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos committed May 16, 2020
1 parent 4dfef6b commit 6b7cc1d
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/channel/beaconSocketChannel.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion src/channel/guaranteedChannel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Logger from '../logging';
import {Logger} from '../logging';
import {DuplexChannel, OutputChannel} from './index';
import NullLogger from '../logging/nullLogger';

Expand Down
2 changes: 1 addition & 1 deletion src/channel/queuedChannel.ts
Original file line number Diff line number Diff line change
@@ -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<T> implements OutputChannel<T> {
Expand Down
2 changes: 1 addition & 1 deletion src/channel/retryChannel.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion src/channel/socketChannel.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/container.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/facade/sdkFacade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/logging/consoleLogger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Logger from './index';
import {Logger} from './index';

type ConsoleMethod = {
(message?: any, ...optionalParams: any[]): void,
Expand Down
2 changes: 1 addition & 1 deletion src/logging/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default interface Logger {
export interface Logger {
debug(message: string): void;

info(message: string): void;
Expand Down
2 changes: 1 addition & 1 deletion src/logging/namespacedLogger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Logger from './index';
import {Logger} from './index';

export default class NamespacedLogger implements Logger {
private readonly logger: Logger;
Expand Down
2 changes: 1 addition & 1 deletion src/logging/nullLogger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Logger from './index';
import {Logger} from './index';

export default class NullLogger implements Logger {
public debug(): void {
Expand Down
2 changes: 1 addition & 1 deletion src/queue/monitoredQueue.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/sdk.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/tracker.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion test/channel/socketChannel.test.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion test/container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/logging/namespacedLogger.test.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/sdk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 6b7cc1d

Please sign in to comment.