RoadmapShopEvents
Skip to main content

Home > @rushstack/heft > ScopedLogger

ScopedLogger class

Signature:

export declare class ScopedLogger implements IScopedLogger 

Implements: IScopedLogger

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ScopedLogger class.

Properties

PropertyModifiersTypeDescription
errorsreadonlyReadonlyArray<Error>
loggerNamereadonlystring
terminalreadonlyITerminal
terminalProviderreadonlyITerminalProvider
warningsreadonlyReadonlyArray<Error>

Methods

MethodModifiersDescription
emitError(error)Call this function to emit an error to the heft runtime.
emitWarning(warning)Call this function to emit an warning to the heft runtime.