UNPKG

@rushstack/heft

Version:

Build all your JavaScript projects the same way: A way that works.

23 lines 1.02 kB
import { type FileLocationStyle, type IFileErrorFormattingOptions } from '@rushstack/node-core-library'; import type { ITerminalProvider } from '@rushstack/terminal'; import { ScopedLogger } from './ScopedLogger'; export interface ILoggingManagerOptions { terminalProvider: ITerminalProvider; } export declare class LoggingManager { private _options; private _scopedLoggers; private _shouldPrintStacks; private _hasAnyWarnings; private _hasAnyErrors; get errorsHaveBeenEmitted(): boolean; get warningsHaveBeenEmitted(): boolean; constructor(options: ILoggingManagerOptions); enablePrintStacks(): void; resetScopedLoggerErrorsAndWarnings(): void; requestScopedLogger(loggerName: string): ScopedLogger; getErrorStrings(fileLocationStyle?: FileLocationStyle): string[]; getWarningStrings(fileErrorFormat?: FileLocationStyle): string[]; static getErrorMessage(error: Error, options?: IFileErrorFormattingOptions): string; } //# sourceMappingURL=LoggingManager.d.ts.map