UNPKG

aws-cdk

Version:

AWS CDK CLI, the command line tool for CDK apps

83 lines (82 loc) 1.92 kB
/** * @deprecated */ export declare function withCorkedLogging<A>(block: () => Promise<A>): Promise<A>; /** * @deprecated */ export declare enum LogLevel { /** Not verbose at all */ DEFAULT = 0, /** Pretty verbose */ DEBUG = 1, /** Extremely verbose */ TRACE = 2 } /** * @deprecated */ export declare let logLevel: LogLevel; /** * @deprecated */ export declare let CI: boolean; /** * @deprecated */ export declare function setLogLevel(newLogLevel: LogLevel): void; /** * @deprecated */ export declare function setCI(newCI: boolean): void; /** * @deprecated */ export declare function increaseVerbosity(): void; /** * @deprecated */ export declare const trace: (fmt: string, ...args: unknown[]) => false | void; /** * @deprecated */ export declare const debug: (fmt: string, ...args: unknown[]) => false | void; /** * @deprecated */ export declare const error: (fmt: string, ...args: unknown[]) => void; /** * @deprecated */ export declare const warning: (fmt: string, ...args: unknown[]) => void; /** * @deprecated */ export declare const success: (fmt: string, ...args: unknown[]) => void; /** * @deprecated */ export declare const highlight: (fmt: string, ...args: unknown[]) => void; /** * @deprecated */ export declare const print: (fmt: string, ...args: unknown[]) => void; /** * @deprecated */ export declare const data: (fmt: string, ...args: unknown[]) => void; /** * @deprecated */ export type LoggerFunction = (fmt: string, ...args: unknown[]) => void; /** * Create a logger output that features a constant prefix string. * * @deprecated * * @param prefixString - the prefix string to be appended before any log entry. * @param fn - the logger function to be used (typically one of the other functions in this module) * * @returns a new LoggerFunction. */ export declare function prefix(prefixString: string, fn: LoggerFunction): LoggerFunction;