UNPKG

@graphql-hive/logger

Version:
17 lines (14 loc) 716 B
import { getLogger } from '@logtape/logtape'; import { a as LogLevel, A as Attributes, L as LogWriter } from '../logger-0VFPPle_.js'; import '@whatwg-node/disposablestack'; interface LogTapeLogWriterOptions { category?: Parameters<typeof getLogger>[0]; getProperties?(level: LogLevel, attrs: Attributes | null | undefined, msg: string | null | undefined): Record<string, unknown>; } declare class LogTapeLogWriter implements LogWriter { #private; options: LogTapeLogWriterOptions; constructor(options?: LogTapeLogWriterOptions); write(level: LogLevel, attrs: Attributes | null | undefined, msg: string | null | undefined): void; } export { LogTapeLogWriter, type LogTapeLogWriterOptions };