LoggerInterface: {
    addContext(context: Context): void;
    appendKeys(attributes?: LogKeys): void;
    appendPersistentKeys(attributes?: LogKeys): void;
    createChild(options?: ConstructorOptions): LoggerInterface;
    critical(input: LogItemMessage, ...extraInput: LogItemExtraInput): void;
    debug(input: LogItemMessage, ...extraInput: LogItemExtraInput): void;
    error(input: LogItemMessage, ...extraInput: LogItemExtraInput): void;
    getLevelName(): | "CRITICAL"
    | "TRACE"
    | "DEBUG"
    | "INFO"
    | "WARN"
    | "ERROR"
    | "SILENT";
    getLogEvent(): boolean;
    getPersistentLogAttributes(): LogAttributes;
    info(input: LogItemMessage, ...extraInput: LogItemExtraInput): void;
    injectLambdaContext(
        options?: InjectLambdaContextOptions,
    ): HandlerMethodDecorator;
    logEventIfEnabled(event: unknown, overwriteValue?: boolean): void;
    refreshSampleRateCalculation(): void;
    removeKeys(keys?: string[]): void;
    removePersistentLogAttributes(keys?: string[]): void;
    resetKeys(): void;
    setLogLevel(logLevel: LogLevel): void;
    setPersistentLogAttributes(attributes?: LogAttributes): void;
    shouldLogEvent(overwriteValue?: boolean): boolean;
    trace(input: LogItemMessage, ...extraInput: LogItemExtraInput): void;
    warn(input: LogItemMessage, ...extraInput: LogItemExtraInput): void;
}

Interface for the Logger class.

Type declaration