@graphql-hive/logger
Version:
14 lines (11 loc) • 468 B
TypeScript
import { b as Logger } from './logger-0VFPPle_.js';
import '@whatwg-node/disposablestack';
declare const requestIdByRequest: WeakMap<Request, string>;
/**
* Gets the {@link Logger} of for the {@link request}.
*
* If the request does not have a logger, the provided {@link log}
* will be associated to the {@link request} and returned.
*/
declare function loggerForRequest(log: Logger, request: Request): Logger;
export { loggerForRequest, requestIdByRequest };