graphql-yoga
Version:
10 lines (9 loc) • 433 B
text/typescript
import type { LogLevel } from '@graphql-hive/logger';
import { Logger } from '@graphql-hive/logger';
/**
* Creates a {@link Logger} out of the `logging` option of the server.
*
* Kept in sync with Hive Gateway's `createLoggerFromLogging` so that both products
* interpret the `logging` option in exactly the same way.
*/
export declare function createLoggerFromLogging(logging: boolean | Logger | LogLevel | undefined): Logger;