dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
49 lines (48 loc) • 1.93 kB
TypeScript
export declare const DT_APP_DEV_SERVER_EXPOSURE_MESSAGE = "Using 0.0.0.0 as host will expose the dev server to your internal network!\n Use 0.0.0.0 as host only when you want to access the dev server from another machine.\n Remove \"host: '0.0.0.0'\" if this behavior is not explicitly wanted.";
/** Colorizes a string */
export declare function rainbow(string: string): string;
/** Logging class for the CLI */
declare class WaveLogger {
boxSize: number;
warningBoxSize: number;
/** Disables logging */
disabled: boolean;
/** Loading spinner instance */
spinner: {
create: () => import("./spinner-service").Spinner;
disable: () => void;
start: (text?: string) => import("./spinner-service").Spinner;
pause: () => void;
resume: () => void;
abort: () => void;
};
/** Toggle if the logger should log */
disable(): void;
/** Log something to the cli */
log(text: string): void;
/** Prints a debug message */
debug(text: string, context: string): void;
/** Log level information (verbose output) */
info(text: string, pad?: boolean): void;
/** Log level for successful tasks */
success(text: string): void;
/** Log level information (verbose output) */
error(text: string): void;
/** Log level for warnings */
warn(text: string): void;
/** Logs the text in a box */
logBox(text: string): void;
/** Cleanup logger. Used before system.exit() */
clean(): void;
/** Initialize log file stream */
initLogFile(root: string): Promise<void>;
private debounceTimeout?;
/** Logs the text and pauses a loading spinner in between if there is one */
private _log;
/** Logs the text with timestamp prefix to file */
private _printToFile;
/** Cleans a string and adds the necessary space */
private _padString;
}
export declare const logger: WaveLogger;
export {};