UNPKG

@graphql-hive/logger

Version:
17 lines (14 loc) 716 B
import { getLogger } from '@logtape/logtape'; import { b as LogWriter, L as LogLevel, a as Attributes } from '../logger-tyqDUP6r.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 };