UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

35 lines (34 loc) 1.27 kB
declare class FunLogger { protected apiKey: string | null; protected isDebugMode: boolean; protected userId: string | null; protected userAddress: string | null; protected userName: string | null; protected userLoginType: string | null; protected sdkVersion: string | null; protected deviceId: string | null; constructor(); private getFunLogEnv; private logDataDog; private onDebug; private onInfo; private onWarn; private onError; /**======================== * PUBLIC LOGGER FUNCTIONS *=========================*/ log(title: string, data?: object): void; info(title: string, data?: object): void; debug(title: string, data?: object): void; warn(title: string, data?: object): void; error(title: string, error: Error, data?: object): void; configure(apiKey: string | null, isDebug: boolean, sdkVersion: string): void; getUserId(): string | null; getUserAddress(): string | null; getUserName(): string | null; getUserLoginType(): string | null; setUserInfo(userId: string, userAddress: string, userName: string, userLoginType: string, deviceId: string): void; setDeviceId(deviceId: string): void; } declare const logger: FunLogger; export { logger };