/** * Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ /** * An interface defines the logger related APIs. */ export interface Logger { level: string; debug(message?: any, ...optionalParams: any[]): void; info(message?: any, ...optionalParams: any[]): void; warn(message?: any, ...optionalParams: any[]): void; error(message?: any, ...optionalParams: any[]): void; trace(message?: any, ...optionalParams: any[]): void; } export declare namespace LOG { var logger: Logger; } /** * Redacts known sensitive values from request/response text before it is logged. */ export declare function sanitizeSensitiveData(value: string): string; /** * Builds a sanitized string representation of arbitrary logger input. */ export declare function sanitizeSensitiveDataForLogging(value: any): string;