@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
13 lines • 641 B
TypeScript
import { ConfigInterface } from '../base-types';
import { LoggerFunction } from './log';
import { LogContext } from './types';
export declare function logger(config: ConfigInterface): {
log: LoggerFunction;
debug: (message: string, context?: LogContext) => Promise<void>;
info: (message: string, context?: LogContext) => Promise<void>;
warning: (message: string, context?: LogContext) => Promise<void>;
error: (message: string, context?: LogContext) => Promise<void>;
deprecated: (version: string, message: string) => void;
};
export type ShopifyLogger = ReturnType<typeof logger>;
//# sourceMappingURL=index.d.ts.map