copy trading API
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { WsConnectionState } from '../websocket-client';
|
||||
import { DefaultLogger } from '../logger';
|
||||
|
||||
import WebSocket from 'isomorphic-ws';
|
||||
|
||||
import { WsConnectionState } from '../websocket-client';
|
||||
import { DefaultLogger } from './logger';
|
||||
|
||||
type WsTopic = string;
|
||||
type WsTopicList = Set<WsTopic>;
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from './BaseRestClient';
|
||||
export * from './requestUtils';
|
||||
export * from './WsStore';
|
||||
export * from './logger';
|
||||
|
||||
22
src/util/logger.ts
Normal file
22
src/util/logger.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
export type LogParams = null | any;
|
||||
|
||||
export const DefaultLogger = {
|
||||
silly: (...params: LogParams): void => {
|
||||
// console.log(params);
|
||||
},
|
||||
debug: (...params: LogParams): void => {
|
||||
console.log(params);
|
||||
},
|
||||
notice: (...params: LogParams): void => {
|
||||
console.log(params);
|
||||
},
|
||||
info: (...params: LogParams): void => {
|
||||
console.info(params);
|
||||
},
|
||||
warning: (...params: LogParams): void => {
|
||||
console.error(params);
|
||||
},
|
||||
error: (...params: LogParams): void => {
|
||||
console.error(params);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user